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 using wsadmin scripting 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.
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.
For information
about the environment variables that deal with dumping threads, refer
to the Java Diagnostics guide.
In this information ... | IBM Redbooks, demos, education, and more(Index) |