|
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'). |
|
|
+ |
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.
|
|
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. |