cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Saradhi.Potharaju
AppDynamics Team (Retired)

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: