(→Java 7)
|
(→*nix)
|
Line 12: | |||
This section lists methods to obtain dumps on *nix-based platforms | This section lists methods to obtain dumps on *nix-based platforms | ||
+ | == All Java Versions == | ||
+ | === kill === | ||
+ | The 'kill' command on *nix machines will invoke a thread dump when the highest level of killing a process is inflicted. To perform the highest level of kill, and to generate a thread dump of the process that is being eradicated, run the following command: | ||
+ | '''kill -QUIT process-id#''' (note that some flavors of *nix actually expect a -9 instead of -QUIT) | ||
+ | This is not so much a Java command as it is an OS command. | ||
== Java 5 == | == Java 5 == | ||
There may be different options for each type of Java installed. The commands listed below are known to work with the Java 7 JDK. | There may be different options for each type of Java installed. The commands listed below are known to work with the Java 7 JDK. |