Package org.eclipse.mat.hprof.acquire
Class JMapHeapDumpProvider
java.lang.Object
org.eclipse.mat.hprof.acquire.JMapHeapDumpProvider
- All Implemented Interfaces:
IHeapDumpProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacquireDump(VmInfo info, File preferredLocation, IProgressListener listener) Acquire a heap dump from a locally running Java process.getAvailableVMs(IProgressListener listener) Returns a list of locally running Java processes from which the heap dump provider can attempt to acquire a heap dump
-
Field Details
-
jdkHome
-
jdkList
-
defaultCompress
public boolean defaultCompress -
defaultChunked
public boolean defaultChunked -
defaultLive
public boolean defaultLive
-
-
Constructor Details
-
JMapHeapDumpProvider
public JMapHeapDumpProvider()
-
-
Method Details
-
acquireDump
public File acquireDump(VmInfo info, File preferredLocation, IProgressListener listener) throws SnapshotException Description copied from interface:IHeapDumpProviderAcquire a heap dump from a locally running Java process. The- Specified by:
acquireDumpin interfaceIHeapDumpProvider- Parameters:
info- a descriptor of the Java process which should be dumpedpreferredLocation- a preferred filename under which the heap dump should be saved. TheIHeapDumpProvideris not obliged to provide the heap dump at this locationlistener- a progress listener- Returns:
- the File under which the successfully generated heap dump is saved
- Throws:
SnapshotException
-
getAvailableVMs
Description copied from interface:IHeapDumpProviderReturns a list of locally running Java processes from which the heap dump provider can attempt to acquire a heap dump- Specified by:
getAvailableVMsin interfaceIHeapDumpProvider- Parameters:
listener- a progress listener- Returns:
- A List of VMs, of a type which extends
VmInfo. - Throws:
SnapshotException
-