Package org.eclipse.mat.ibmvm.acquire
Class IBMJavaDumpProvider
java.lang.Object
org.eclipse.mat.ibmvm.acquire.BaseProvider
org.eclipse.mat.ibmvm.acquire.IBMDumpProvider
org.eclipse.mat.ibmvm.acquire.IBMJavaDumpProvider
- All Implemented Interfaces:
IHeapDumpProvider
Helper dump provider - the IBMDumpProvider delegates to this to do the work for java core dumps.
-
Field Summary
Fields inherited from class org.eclipse.mat.ibmvm.acquire.BaseProvider
defaultCompress, defaultLive, defaultType, heapDumpTemplate, heapDumpZipTemplate, hprofDumpTemplate, hprofDumpZipTemplate, javaDumpTemplate, listAttach, systemDumpTemplate, systemDumpZipTemplate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
files()
jextract
(File preferredDump, boolean compress, List<File> dumps, File udir, File javahome, IProgressListener listener) The target JVM will have generated a dump of the form heapdump.yyyyMMdd.HHmmss.pid.seq.phd javacore.yyyyMMdd.HHmmss.pid.seq.txt or heapdump<pid>.<timestamp>.phd javacore<pid>.<timestamp>.txt Options: 1.leave dumps where are 2.move dumps and rename them based on the target targetfile.xyz this doesn't work when the user specifies the wrong name 3.move dumps, rename metafiles to match dump file Only move dumps with heapdump or javacore in the name If the preferred name ends with .gz then compress the dump file.Methods inherited from class org.eclipse.mat.ibmvm.acquire.IBMDumpProvider
acquireDump, getAvailableVMs, main
-
Constructor Details
-
IBMJavaDumpProvider
public IBMJavaDumpProvider()
-
-
Method Details
-
files
public int files() -
jextract
public File jextract(File preferredDump, boolean compress, List<File> dumps, File udir, File javahome, IProgressListener listener) throws IOException, InterruptedException, SnapshotException The target JVM will have generated a dump of the form heapdump.yyyyMMdd.HHmmss.pid.seq.phd javacore.yyyyMMdd.HHmmss.pid.seq.txt or heapdump<pid>.<timestamp>.phd javacore<pid>.<timestamp>.txt Options: 1.leave dumps where are 2.move dumps and rename them based on the target targetfile.xyz this doesn't work when the user specifies the wrong name 3.move dumps, rename metafiles to match dump file Only move dumps with heapdump or javacore in the name If the preferred name ends with .gz then compress the dump file.- Returns:
- the resultant file
- Throws:
IOException
InterruptedException
SnapshotException
-