AppDynamics Knowledge Base

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

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:
‎05-31-2017 11:05 AM
Updated by: