public static synchronized void captureMemoryDump(@NotNull String dumpPath) throws Exception {
    ourDumpHeap.invoke(ourMXBean, dumpPath, true);
  }
public static synchronized void captureMemoryDump(@NotNull String dumpPath)