Package org.jppf.management.diagnostics
Interface HeapDumpCollector
- All Known Implementing Classes:
HeapDumpCollectorIBM,HeapDumpCollectorOracle
public interface HeapDumpCollector
Interface for classes that which to programmatically trigger a heap dump of the current JVM.
Currrently, this only works with Oracle's "standard" and JRockit, along with IBM's, JVMs.
- Author:
- Laurent Cohen
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThis factory class generates instances ofHeapDumpCollectorbased on the vendor name found inSystem.getProperty("java.vm.vendor"). -
Method Summary
-
Method Details
-
dumpHeap
Call this method from your application whenever you want to dump the heap snapshot into a file.- Returns:
- a message describing the outcome.
- Throws:
Exception- if any error occurs
-