IBM Support

How to collect a thread dump on a Weblogic server with ITCAM enabled.

Question & Answer


Question

How to collect a thread dump on a Weblogic server with ITCAM enabled.

Answer

Sometimes you might need to collect a thread dump on your WebLogic server to see things like hung threads, threads waiting on resources, etc.. It is very easy to do this and can be done while the server is running. Please follow these steps to capture a java thread dump.

1. Do a "ps -aef | grep -i weblogic" and get the process id. For example, in my screenshot example here, my Weblogic server process id (pid) is 12995.




2. Next do a kill -3 12995 from the command-line as shown here:


3. This will write a Java thread dump to a file and the output path will be shown in your server logs shown here. Look for the JVMDUMP0101I message along with the path of the Java thread dump file:


(Note: Your server will continue to run, so it shouldn't impact production. You can do the "ps -aef | grep -i weblogic" again and verify that its still running. You can create a thread dump at any point in time, the most common need for creating a thread dump is when you suspect hung threads or threads waiting indefinitely for completion.)

Send this thread dump file to IBM Support for review if asked.

[{"Product":{"code":"SSCH4B","label":"Tivoli Composite Application Manager for J2EE"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"ITCAM J2EE WEBLOGIC","Platform":[{"code":"PF027","label":"Solaris"},{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"}],"Version":"7.1.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Product Synonym

ITCAM ITCAM for J2EE

Document Information

Modified date:
17 June 2018

UID

swg21697883