Question & Answer
Question
How to get a Linux thread dump for the khtagent agent.
Answer
At times, you might need to get a thread dump to see what threads are being used by your khtagent. This is useful if you find hung threads, or if you are experiencing high CPU issues. By default, you will not get a thread dump if you do "kill -3 <pid>". So to enable the thread dumps, please do these steps:
1. cd $ITM_HOME/lx8266/ht/config and open the file khtwb.properties file after you make a backup first:
![](/support/pages/system/files/support/swg/tivtech.nsf/0/4c30f54e4be115aa852580b5005f2cd3/Content/0.29A.gif)
2. Towards the bottom of the file, comment out the -Xrs parm and add -Xdump:java parameter. Save file.
![](/support/pages/system/files/support/swg/tivtech.nsf/0/4c30f54e4be115aa852580b5005f2cd3/Content/0.8B60.gif)
3. Restart your HT agent, and then get the new pid. See steps here:
![](/support/pages/system/files/support/swg/tivtech.nsf/0/4c30f54e4be115aa852580b5005f2cd3/Content/1.4D54.gif)
4. Use the kill -3 <pid> command which will dump a javacore file as follows:
![](/support/pages/system/files/support/swg/tivtech.nsf/0/4c30f54e4be115aa852580b5005f2cd3/Content/5.2F5A.gif)
5. Open the javacore.*.txt file and look at the threads consuming the high CPU or the threads running when you did the thread dump.
[{"Product":{"code":"SSDTFJ","label":"Tivoli Composite Application Manager for Application Diagnostics"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"ITCAM for APPLICATION DIAGNOSTICS Agent for HTTP Servers","Platform":[{"code":"PF016","label":"Linux"}],"Version":"7.1;7.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Product Synonym
ITCAM for HTTP Servers Apache
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21997944