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.

Knowledge Base

How do I collect thread dump for the Controller App Server Java process using asadmin?

To collect a thread dump for a Controller App Server process, use the Glassfish "asadmin" tool.


  1. In the computer terminal, use the command generate-jvm-report to generate a threadump.txt file.
    • <controller_home>/appserver/glassfish/bin/asadmin -u admin --passwordfile=<controller_home>/.passwordfile  generate-jvm-report --type=thread > threaddump.txt
  2. Create a series of thread dumps at regular intervals.
    • The following example would create 20 thread dumps in 60-second intervals:
    • mkdir /tmp/threaddumps
    • cd /tmp/threaddumps
    • for i in {1..20}; do /opt/AppDynamics/Controller/appserver/glassfish/bin/asadmin -u admin --passwordfile=/opt/AppDynamics/Controller/.passwordfile generate-jvm-report --type=thread > threaddump$i.txt; sleep 60; done
  3. Additionally, the generate-jvm-report command can generate other types of reports including memory or summary. For more information, view Glassfish documentation.
Version history
Last update:
‎12-30-2018 10:54 AM
Updated by:
By replying you agree to the Terms and Conditions of the AppDynamics Community.
0 Kudos