-
Notifications
You must be signed in to change notification settings - Fork 12
DEV, Heap Dump Analysis
Tamás Kőhegyi edited this page Mar 6, 2015
·
1 revision
Provided you have access to the machine where Wilma is running.
jmap is a command line tool which comes with the installed JDK, it can be used for generating heap dumps.
Example:
jmap -dump:live,format=b,file=filename.hprof processid
- live is an optional option, it means that only live objects will be dumped (live objects are the ones which are reachable from others).
- format=b option specifies that the heap dump should be in hprof binary format
- file=filename.hprof the resulting heap dump will be called_ filename.hprof_
- processid the process id of the JVM, from where we will get the heap dump
If the process is running on a 64-bit VM then it may be advised to provide the -J-d64 option to jmap
Example:
jmap -J-d64 -dump:live,format=b,file=filename.hprof processid
For further information (like Windows specific configurations):
http://docs.oracle.com/javase/7/docs/technotes/tools/share/jmap.html
Use a heap dump analyzer like: https://eclipse.org/mat/