Click View Formatted Version to allow you to quickly analyze the dumps for any obvious issues in your system.
Use the Thread Dump Collection and Analysis tool to take thread dumps from a running CQ instance for troubleshooting the following:
- performance
- lock contention.
- deadlock
- other thread-related issues
Using the tool
You can access the Thread Dump Collection and Analysis tool directly from a web browser at http://<host>:<port>/system/console/threadDumps
- To take thread dumps, enter the number of thread dumps to take and the interval of time between them. Then, click Generate Thread Dumps.
- Check "Use jstack" to have it use jstack to generate the thread dumps.
- Click View Formatted Version to view a color-coded, expandable list of the threads.
- Right-click View Raw File and select Save Link As to save the thread dumps file to your computer.
Interpreting results
For a quick and simple analysis of the thread dumps, you can view the formatted version in your web browser.
-
-
The initial view of the thread dump is basically showing the state of each thread in a table. It gives you some ideas as to the progression of the threads over time.
-
The threads states are color-coded as follows: Green=running; orange=waiting; red=blocked; gray=new, terminated, and absent.
-
Click Show/Hide Date & Time to show the date and time of each thread dump.
-
Click Show/Hide Extra Info to show extra info about the threads, including the following:
- whether the thread is a daemon, priority, java, and native thread ID
- extended thread state information
This operation can take a long time, as it loops through the whole table of threads.
For more in-depth analysis, open the thread dumps in a thread dump analyzer.
- Right-click View Raw File next to the dump file and click Save Link As to save it to your computer.
- Open the saved file in a thread dump analyzer, such as TDA or IBM Thread Analyzer.
Be careful not to click View Formatted Version in a production server if you have requested more than 20 thread dumps. It can put an unnecessary load on your server. Instead, download the thread dump file to your computer for analysis.
Open issues
- The Web Console navigation menu displays incorrectly while the thread dump is being generated.
CQ version capability
- CQ 5.5
- AEM 5.6