What is the thread dump tool?
The thread dump tool is a feature that outputs thread dumps, which are helpful in analyzing the execution status of programs as a whole or each thread, by outputting the status of each thread in the same manner as Java VM thread dumps (collected from the command prompt by pressing [Break] while holding down [Ctrl]).
The thread dump tool provides the following features in addition to Java VM thread dump output.
File output
Thread dumps can be output to files with the option (-f) specified.
Header and footer output
If a thread dump is output as standard output or standard error output, the thread dump will be included in the application log file (such as a file to which standard output of Servlet or EJB, or Java VM output is stored). The header and footer provide information that serves as a marker when referencing the log file. (Also output if the -f option is specified.)
The header includes the thread dump collection datetime, command line, and memory usage status information.
Operating environment
JDK 7
Two types of commands
The thread dump tool provides the following two types of commands:
The thdump command, used as a normal application (program that is started by the user)
The thdumpSVC command, used as a Windows service (program that resides and operates inside the system)
Use these two commands according to the following:
Use the thdump command if operating a Java program as a standard application.
Use the thdumpSVC command if operating a Java program as a Windows service.
There are no functional differences between the two command types.
Storage destination directory
thdump command::
symfowareInstallDir\java\jdk7\tools\thdump
thdumpSVC command:
symfowareInstallDir \java\jdk7\tools\thdump\thdumpSVC