How to do Heap Dumps from command prompt Java 8

How to do Heap Dumps from command prompt Java 8


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
heap_dump


No comments:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days