Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

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
Revision #:
6 of 6
Last update:
‎12-30-2018 10:54 AM
Updated by:
 


Found this article helpful? Click the Thumbs Up button.
Have an additional comment? Post it below.
0 Kudos