railo.commons.surveillance
Class HeapDumper

java.lang.Object
  extended by railo.commons.surveillance.HeapDumper

public class HeapDumper
extends Object


Constructor Summary
HeapDumper()
           
 
Method Summary
static void dumpTo(Resource res, boolean live)
          Dumps the heap to the outputFile file in the same format as the hprof heap dump.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeapDumper

public HeapDumper()
Method Detail

dumpTo

public static void dumpTo(Resource res,
                          boolean live)
                   throws IOException
Dumps the heap to the outputFile file in the same format as the hprof heap dump. If this method is called remotely from another process, the heap dump output is written to a file named outputFile on the machine where the target VM is running. If outputFile is a relative path, it is relative to the working directory where the target VM was started.

Parameters:
res - Resource to write the .hprof file.
live - if true dump only live objects i.e. objects that are reachable from others
Throws:
IOException


Copyright © 2012 Railo