railo.commons.surveillance
Class HeapDumper
java.lang.Object
railo.commons.surveillance.HeapDumper
public class HeapDumper
- extends Object
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. |
HeapDumper
public HeapDumper()
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