cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The AppDynamics Community is Migrating this Friday, February 28th.


At 6pm PST, the AppDynamics Community will go into read-only mode and after migration is complete, you will be redirected to community.splunk.com.
Read more here


Thread dump via API?

John.Gregg
Architect

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.

 

thanks

1 REPLY 1

Ryan.Paredez
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.

 

https://docs.appdynamics.com/21.5/en/extend-appdynamics/appdynamics-apis/alert-and-respond-api/actio...

 

Example
Request
Response
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": "email@website.com"
}
}


Thanks,

Ryan, Cisco 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.



Check out Observabiity in Action

new deep dive videos weekly in the Knowledge Base.

Ask the Experts Session: Hybrid Application Monitoring Deployment

Join us on Feb 26 to explore Splunk AppDynamics deployment strategies, SaaS models, agent rollout plans, and expert best practices.


Register Now

Observe and Explore
Dive into our Community Blog for the Latest Insights and Updates!


Read the blog here