com.jalios.jcms.test
Class HeapDumper

java.lang.Object
  extended by 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)


Constructor Summary
HeapDumper()
           
 
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
 

Constructor Detail

HeapDumper

public HeapDumper()
Method Detail

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.