IBM Support

Generating a Java Thread dump in ITIM 5.1 and ISIM 6.0

Technote (troubleshooting)


For debugging performance and hang related issues, there is a need to generate a Java Thread dump. The steps are documented below.

Resolving the problem

Logon to the machine where the WebSphere Application Server is installed with sufficient privileges. Go to the $WAS_HOME/AppServer/profiles/<profile>/bin directory and invoke either the "" or "wsadmin.bat".

If you have WAS security enabled, also add the "-user <wasuser> -password <password>" options.

In a clustered environment, make sure wsadmin is connecting to the application server for which the thread dump is needed. To do this, use the "-conntype SOAP -port XXXX" options specifying the SOAP port for the application server (To determine the SOAP port number for a specific application server, go to the WebSphere Console, select the application server, click on ports and look for the port value assigned to SOAP_CONNECTOR_ADDRESS).

On the wsadmin prompt, run the following commands. Substitute <server-name> with the cluster member's name.

set jvm [$AdminControl completeObjectName type=JVM,process=<server-name>,*]

$AdminControl invoke $jvm dumpThreads

It produces a dump (filename starts with javacore) in the $WAS_HOME/AppServer/profiles/<profile> directory.

Related information

How to manually generate a Heapdump in WebSphere on Win
How to manually generate a Heapdump in WebSphere on AIX

Document information

More support for: IBM Security Identity Manager

Software version: 5.1, 6.0

Operating system(s): AIX, Linux, Solaris, Windows

Reference #: 1429665

Modified date: 05 May 2010