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).
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.
You need to install a JDK to trigger thread dumps in Windows environments. The JDK includes the following commands that you can use: