Thread dump download process and sample policy
This article outlines the steps for downloading a thread dump, and offers an example of how one might configure a Health Rule Policy that would trigger a thread dump.
Table of Contents
How do I download a thread dump?
What is an example of how to create a policy to generate a thread dump?
Additional Resources
How do I download a thread dump?
To see how to take a thread dump, refer to the Thread Dump Actions section of the Diagnostic Actions documentation.
To download a thread dump, follow these steps:
On the Applications Dashboard , click the Events tab and check to see whether any Health Rule violation events triggered, generating a thread dump.
If there are any thread dumps, click on an individual Code Deadlock event. That event’s Code Deadlock window will open.
Click the onscreen Action Executed link that corresponds to the Code Deadlock. The Actions Executed tab will open.
Click the Thread Dump Ended link. The Thread Dump Ended window will open.
Click the Download Thread Dump button.
What is an example of how to create a policy to generate a thread dump?
You can create an AppDynamics health policy that will trigger thread dump generation. The following example shows how configure a policy that generates a thread dump when an application encounters a deadlock issue.
From the menu on the left, click Alert & Respond –> Policies –> Create Policy .
Name the policy (In the example below, “Name: Code Deadlock - Health Rule Violation”).
Expand Health Rule Violation Events , then expand Code Problems and select the Code Deadlock option. Click the Save button.
Back under the Actions tab, click Create Action . The Create Action box will open.
Under the Diagnostics subheading, select the Take a thread dump radio button, then click OK .
You will see your new policy listed. Click to open.
Review and click Save .
Additional Resources
To see how to take a thread dump, refer to the Thread Dump Actions section of the Diagnostic Actions documentation.
See also the Configure Policies documentation.
... View more