Package com.jalios.jcms.test
Class HeapDumper
java.lang.Object
com.jalios.jcms.test.HeapDumper
Utiliy class to dump the HEAP memory of the current JVM for easier debugging of memory related problems (eg : memory leak)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HeapDumper
public HeapDumper()
-
-
Method Details
-
dumpHeap
Deprecated.usedumpHeap(String, boolean)insteadCall this method you want to dump the heap snapshot into a file.- Parameters:
file- a File in which to do the heap dump, must not be null- Throws:
Exception- if the dump could not be performed
-
dumpHeap
Call this method from your application whenever you want to dump the heap snapshot into a file.- Parameters:
fileName- name of the heap dump filelive- flag that tells whether to dump only the live objects
-
main
-
dumpHeap(String, boolean)instead