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:

 My Attempt to learn AI  GPT Generative Pretrained Transformer Created by Google in 2017 with the publication of the paper "Attention ...

Popular in last 30 days