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 generates a Java
heap dump, a Java virtual machine (JVM) initiated system TDUMP, and
a Java core dump, which includes a Java thread dump. If you want to
disable the generation of the heap dump, set the wsadmin_dumpthreads_enable_heapdump
server custom property to 0. If you want to
disable the generation of the system TDUMP, set the wsadmin_dumpthreads_enable_javatdump
server custom property to 0. You can set these
properties at either the node or cell level.
You
can 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.
set jvm [$AdminControl completeObjectName type=JVM,process=server1,*] $AdminControl invoke $jvm dumpThreads
jvm = AdminControl.completeObjectName('type=JVM,process=server1,*') AdminControl.invoke(jvm, 'dumpThreads')
You can also use the Modify command to generate
a Java core dump whenever a timeout occurs.
In this information ... | IBM Redbooks, demos, education, and more(Index) |