Package org.nuxeo.runtime.management.jvm
Class HeapDumper
- java.lang.Object
-
- org.nuxeo.runtime.management.jvm.HeapDumper
-
public class HeapDumper extends Object
Helper to dump the heap in a temporary file.- Since:
- 5.5
- Author:
- matic
-
-
Field Summary
Fields Modifier and Type Field Description protected HotSpotDiagnosticMXBean
diag
-
Constructor Summary
Constructors Constructor Description HeapDumper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
dumpHeap()
Dumps heap in a temporary file and returns the fileprotected HotSpotDiagnosticMXBean
newDiag()
-
-
-
Field Detail
-
diag
protected final HotSpotDiagnosticMXBean diag
-
-
Constructor Detail
-
HeapDumper
public HeapDumper() throws IOException
- Throws:
IOException
-
-
Method Detail
-
newDiag
protected HotSpotDiagnosticMXBean newDiag() throws IOException
- Throws:
IOException
-
dumpHeap
public File dumpHeap() throws IOException
Dumps heap in a temporary file and returns the file- Throws:
IOException
- Since:
- 5.5
-
-