接口 HeapDumpWebEndpoint.HeapDumper

所有已知实现类:
HeapDumpWebEndpoint.HotSpotDiagnosticMXBeanHeapDumper
封闭类:
HeapDumpWebEndpoint
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface protected static interface HeapDumpWebEndpoint.HeapDumper
Strategy interface used to dump the heap to a file.
  • 方法概要

    修饰符和类型
    方法
    说明
    Dump the current heap to a file.
  • 方法详细资料

    • dumpHeap

      File dumpHeap(Boolean live) throws IOException, InterruptedException
      Dump the current heap to a file.
      参数:
      live - if only live objects (i.e. objects that are reachable from others) should be dumped. May be null to use a JVM-specific default.
      返回:
      the file containing the heap dump
      抛出:
      IOException - on IO error
      InterruptedException - on thread interruption
      IllegalArgumentException - if live is non-null and is not supported by the JVM
      从以下版本开始:
      3.0.0