Dumping threads in server processes using scripting

Use the AdminControl object to dump the Java threads of a running server.

Before you begin

Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.

About this task

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.

Procedure

Issue one of the following commands to produce a Java core dump.

You can also use the Modify command to generate a Java core dump whenever a timeout occurs.

Important to AMD 64-bit users: You must specify the -Xtrace option to take heap dumps.



In this information ...


IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic    

Terms of Use | Feedback

Last updated: Sep 20, 2010 10:03:57 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-nd-zos&topic=txml_dump
File name: txml_dump.html