Instructions for creating a Java thread dump


Triggering a Thread Dump

There are two methods for triggering a Java thread dump. One method is to send the Java virtual machine (UVM) an operating-environment signal (SIGQUIT). The other method is the programmatic use of tools that are included in the Java Development Kit (JDK).

Send the JVM an Operating-Environment Signal

This method varies by operating environment. Thread dumps that are triggered by the operating environment are written to the standard output (STDOUT) file. You can also trigger multiple dumps, which are all written to the stdout file.

For Microsoft Windows environments, the Java application must run in a command window with STDOUT redirected to a file. When you want to produce a thread dump, simply press CTRL-Break in that window to send the SIGQUIT signal.