(→*nix)
|
(→*nix)
|
Line 35: | |||
This command will then dump a summary of the current memory map to the console. While not as sophisticated as the later versions of java, it still provides some rudimentary functionality. | This command will then dump a summary of the current memory map to the console. While not as sophisticated as the later versions of java, it still provides some rudimentary functionality. | ||
+ | === jstack === | ||
+ | Using 'jstack', which is part of the Java 5 JDK, you can run: | ||
+ | '''jstack -m process-id#''' | ||
+ | This command will then take a thread dump of the java process specified and dump it to the console. It will only provide both Java & C/C++ threads during the trace. You may want to consider redirecting this output to a file with the ''>'' modifier. | ||
== Java 6 == | == Java 6 == | ||
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. |