public class IBMJavaDumpProvider extends IBMDumpProvider
defaultCompress, defaultLive, defaultType, heapDumpTemplate, heapDumpZipTemplate, hprofDumpTemplate, javaDumpTemplate, listAttach, systemDumpTemplate, systemDumpZipTemplate
Constructor and Description |
---|
IBMJavaDumpProvider() |
Modifier and Type | Method and Description |
---|---|
int |
files()
Number of files generated by this dump type
|
File |
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.
|
acquireDump, getAvailableVMs, main
public int files()
IBMDumpProvider
public File jextract(File preferredDump, boolean compress, List<File> dumps, File udir, File javahome, IProgressListener listener) throws IOException, InterruptedException, SnapshotException
preferredDump
- where the final dump should be putcompress
- Whether to compress/zip the dumpdumps
- The dump filesudir
- The directory where the dump files were generatedjavahome
- The Java home directory of the process which produced the dumplistener
- to show progressIOException
InterruptedException
SnapshotException