void dumpHeap(File file, boolean live) throws Throwable {
            dumpHeapMH.invoke(diagnosticMXBean, file.getAbsolutePath(), live);
        }
Dumps the current heap to the specified {@link File}.
@param file the file to dump the heap to
@param live if only {@code live} objects (i.e. objects that are reachable from others) should be
            dumped
core/src/main/java/com/linecorp/armeria/server/management/HeapDumpService.java