Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Java (Java Agent, Installation, JVM, and Controller Installation)

Thread dump via API?


Thread dump via API?

I'm using the v20.5 java agent.


Is there a way to trigger and download a thread dump via the API?  I don't see one.


In the UI, we can do something like this:

  1. Go to node
  2. Go to agent tab
  3. Request agent log files
  4. Collect x thread dumps y millis apart
  5. Download resulting files

I would like to automate that.



By replying you agree to the Terms and Conditions of the AppDynamics Community.
Thread dump via API?
Community Manager

Hi @John.Gregg,


I did some searching and found this. It seems API can be used to initiate a thread dump, but not download.


This example creates an action of the type Thread Dump. See Download Examples.

"actionType": "THREAD_DUMP",
"name": "Thread Dump Action",
"numberOfThreadDumps": 2,
"intervalInMs": 500,
"approvalBeforeExecution": {
"requireApproval": true,
"approverEmail": ""

Ryan, AppDynamics Community Manager

Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.