Class HeapDumpWebEndpoint.HotSpotDiagnosticMXBeanHeapDumper

java.lang.Object
org.springframework.boot.actuate.management.HeapDumpWebEndpoint.HotSpotDiagnosticMXBeanHeapDumper
All Implemented Interfaces:
HeapDumpWebEndpoint.HeapDumper
Enclosing class:
HeapDumpWebEndpoint

protected static class HeapDumpWebEndpoint.HotSpotDiagnosticMXBeanHeapDumper extends Object implements HeapDumpWebEndpoint.HeapDumper
HeapDumpWebEndpoint.HeapDumper that uses com.sun.management.HotSpotDiagnosticMXBean, available on Oracle and OpenJDK, to dump the heap to a file.
  • Constructor Details

    • HotSpotDiagnosticMXBeanHeapDumper

      protected HotSpotDiagnosticMXBeanHeapDumper()
  • Method Details

    • dumpHeap

      public void dumpHeap(File file, boolean live)
      Description copied from interface: HeapDumpWebEndpoint.HeapDumper
      Dump the current heap to the specified file.
      Specified by:
      dumpHeap in interface HeapDumpWebEndpoint.HeapDumper
      Parameters:
      file - the file to dump the heap to
      live - if only live objects (i.e. objects that are reachable from others) should be dumped