|
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. |
|
Using 'jmap', which is part of the JDK, you can run: |
|
Using 'jmap', which is part of the JDK, you can run: |
|
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'). |
|
|
+ |
There may be different options for each type of Java installed. The commands listed below are known to work with the Java 7 JDK.
|
|
|
+ |
Using 'jmap', which is part of the JDK, you can run:
|
|
|
+ |
'''jmap -dump:format=b,file='''''filename'' '''process-id#'''
|
|
|
+ |
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').
|
- |
# Java 7 'jmap' info: [http://docs.oracle.com/javase/6/docs/technotes/tools/share/jmap.html jmap - Memory Map]
|
+ |
# Java 7 'jmap' info: [http://docs.oracle.com/javase/7/docs/technotes/tools/share/jmap.html jmap - Memory Map]
|
|
|
+ |
# Java 6 'jmap' info: [http://docs.oracle.com/javase/6/docs/technotes/tools/share/jmap.html jmap - Memory Map]
|