IBM Support

How to get a Linux thread dump for the khtagent agent.

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:




2. Towards the bottom of the file, comment out the -Xrs parm and add -Xdump:java parameter. Save file.



3. Restart your HT agent, and then get the new pid. See steps here:



4. Use the kill -3 <pid> command which will dump a javacore file as follows:



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

Document Information

Modified date:
17 June 2018

UID

swg21997944