AEM How to take a Thread Dump


The thread dump is a list of all the Java threads that are currently active. If AEM does not respond properly, the thread dump can help you identify deadlocks or other problems.

Using Sling Thread Dumper


  1. Open the AEM Web Console; for example at http://localhost:4502/system/console/.
  2. Select the Threads under Status tab.

screen_shot_2012-02-13at43925pm

Using jstack (command line)


  1. Find the PID (process id) of the AEM Java instance.
    For example, you can use ps -ef or jps.
  2. Run:
    jstack pid
  3. This will show the thread dump.
Note:
You can append the thread dumps to a log file by using the >> output redirection:
jstack pid >> /path/to/logfile.log

See the How to take Thread Dumps from a JVM documentation for more information

No comments:

Post a Comment