public final class HeapDump
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
HeapDump.Listener
Receives a heap dump to analyze.
|
| Modifier and Type | Field and Description |
|---|---|
ExcludedRefs |
excludedRefs
References that should be ignored when analyzing this heap dump.
|
long |
gcDurationMs |
long |
heapDumpDurationMs |
java.io.File |
heapDumpFile
The heap dump file, which you might want to upload somewhere.
|
java.lang.String |
referenceKey
Key associated to the
KeyedWeakReference used to detect the memory leak. |
java.lang.String |
referenceName
User defined name to help identify the leaking instance.
|
long |
watchDurationMs
Time from the request to watch the reference until the GC was triggered.
|
| Constructor and Description |
|---|
HeapDump(java.io.File heapDumpFile,
java.lang.String referenceKey,
java.lang.String referenceName,
ExcludedRefs excludedRefs,
long watchDurationMs,
long gcDurationMs,
long heapDumpDurationMs) |
public final java.io.File heapDumpFile
public final java.lang.String referenceKey
KeyedWeakReference used to detect the memory leak.
When analyzing a heap dump, search for all KeyedWeakReference instances, then open
the one that has its "key" field set to this value. Its "referent" field contains the
leaking object. Computing the shortest path to GC roots on that leaking object should enable
you to figure out the cause of the leak.public final java.lang.String referenceName
public final ExcludedRefs excludedRefs
public final long watchDurationMs
public final long gcDurationMs
public final long heapDumpDurationMs
public HeapDump(java.io.File heapDumpFile,
java.lang.String referenceKey,
java.lang.String referenceName,
ExcludedRefs excludedRefs,
long watchDurationMs,
long gcDurationMs,
long heapDumpDurationMs)