Use the AdminControl object to dump the Java threads of a running server.
Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
The dumpThreads command is not supported
for the z/OS platform. To generate a Java core dump whenever a timeout
occurs, use the Modify command. The Java core dump includes a Java
thread dump.
You can also use environment variables
to set parameters for dumping threads. Refer to the Java Diagnostics publication
for more information about how to use these environment variables
to request dumps.
The following examples
produces a Java core file. You can use this file for problem determination.
set jvm [$AdminControl completeObjectName type=JVM,process=server1,*] $AdminControl invoke $jvm dumpThreads
jvm = AdminControl.completeObjectName('type=JVM,process=server1,*') AdminControl.invoke(jvm, 'dumpThreads')
In this information ... | IBM Redbooks, demos, education, and more |