Package wt.jmx.core.mbeans
Interface HeapDumpDelegateMBean
- All Superinterfaces:
SelfEmailingMBean
- All Known Implementing Classes:
HeapDumpDelegate
NotificationHandlerDelegateFactory that produces a heap dump whenever a
notification is received.
Note this will only function in a Java 6 or higher JVM which provides a
com.sun.management:type=HotSpotDiagnostic MBean with a
heapDump(String,boolean) operation.
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptiondumpHeap()Produce a heap dump to the specified directory with the specified base name and returns the name of the heap dump file
Supported API: trueDirectory which relative DumpDir paths are interpreted as being relative to
Supported API: trueBase filename (prefix) used for generated heap dumps
Supported API: trueDirectory in which heap dumps are generated
Supported API: truegetName()Name of this MBean
Supported API: truebooleanWhether only live references should be captured in heap dumps
Supported API: truesendHeapDumpToSupport(long callNumber, String description) Generates a heap dump as per dumpHeap() operation and sends it to technical support; returns the name of the heap dump file
Supported API: truevoidsetBaseFilename(String baseFilename) Base filename (prefix) used for generated heap dumps
Supported API: truevoidsetDumpDir(String dumpDirString) Directory in which heap dumps are generated
Supported API: truevoidsetLiveRefsOnly(boolean liveRefsOnly) Whether only live references should be captured in heap dumps
Supported API: trueMethods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
-
Method Details
-
getName
String getName()Name of this MBean
Supported API: true -
getBaseDir
String getBaseDir()Directory which relative DumpDir paths are interpreted as being relative to
Supported API: true -
getDumpDir
String getDumpDir()Directory in which heap dumps are generated
Supported API: true -
setDumpDir
Directory in which heap dumps are generated
Supported API: true -
getBaseFilename
String getBaseFilename()Base filename (prefix) used for generated heap dumps
Supported API: true -
setBaseFilename
Base filename (prefix) used for generated heap dumps
Supported API: true -
isLiveRefsOnly
boolean isLiveRefsOnly()Whether only live references should be captured in heap dumps
Supported API: true -
setLiveRefsOnly
void setLiveRefsOnly(boolean liveRefsOnly) Whether only live references should be captured in heap dumps
Supported API: true -
dumpHeap
@MBeanOperationImpact(0) String dumpHeap() throws InstanceNotFoundException, MBeanException, ReflectionExceptionProduce a heap dump to the specified directory with the specified base name and returns the name of the heap dump file
Supported API: true -
sendHeapDumpToSupport
@MBeanOperationImpact(0) String sendHeapDumpToSupport(long callNumber, String description) throws Exception Generates a heap dump as per dumpHeap() operation and sends it to technical support; returns the name of the heap dump file
Supported API: true- Parameters:
callNumber- Existing technical support call number to associate this data withdescription- Description to give data- Throws:
Exception
-