(Reordered least to most)
|
(→Java 7)
|
Line 46: | |||
This command will then dump the memory map of the target process-id# to an hprof file within the current directory (or specified directory if you expand on 'filename'). | This command will then dump the memory map of the target process-id# to an hprof file within the current directory (or specified directory if you expand on 'filename'). | ||
+ | === jstack === | ||
+ | Using 'jstack', which is part of the JDK, you can run: | ||
+ | '''jstack -l process-id#''' | ||
+ | '''jstack -F -l process-id#''' (if the process is hung) | ||
+ | This command will then take a thread dump of the java process specified and dump it to the console. You may want to consider redirecting this output to a file with the ''>'' modifier. | ||