Class HeapDumper
java.lang.Object
se.jiderhamn.HeapDumper
Class that helps programatically dumping the heap.
Heavily inspired by https://blogs.oracle.com/sundararajan/entry/programmatically_dumping_heap_from_java
- Author:
- Mattias Jiderhamn
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
HEAP_DUMP_EXTENSION
-
-
Constructor Details
-
HeapDumper
public HeapDumper()
-
-
Method Details
-
dumpHeap
Dump the heap snapshot into a file.- Parameters:
file- The file in which the dump will be storedlive- Dump only live objects?- Throws:
ClassNotFoundException
-