com.jalios.jcms.test
Class HeapDumper
java.lang.Object
com.jalios.jcms.test.HeapDumper
public class HeapDumper
- extends Object
Utiliy class to dump the HEAP memory of the current JVM for easier
debugging of memory related problems (eg : memory leak)
Method Summary |
static void |
dumpHeap(File file)
Call this method you want to dump the heap snapshot into a file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HeapDumper
public HeapDumper()
dumpHeap
public static void dumpHeap(File file)
throws Exception
- Call 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
Copyright © 2001-2010 Jalios SA. All Rights Reserved.