How to do Heap Dumps from command prompt Java 8
A heap dump is a snapshot of the memory of a Java™ process. The snapshot contains information about the Java objects and classes in the heap at the moment the snapshot is triggered. Heap dump is used to trouble shoot memory consumption for apps.
The following are the commands that are used to perform heap dump.
jcmd process_id GC.heap_dump C:/.../path/heap_dump.hprof
or
jmap -dump:live,file=C:/.../path/heap_dump.hprof process_id
No comments:
Post a Comment