public static synchronized void captureMemoryDumpZipped(@NotNull Path zipFile) throws Exception {
    File tempFile = new File(FileUtilRt.getTempDirectory(), "heapDump." + UUID.randomUUID()+ ".hprof");
    try {
      captureMemoryDump(tempFile.getPath());
      ZipUtil.compressFile(tempFile, zipFile.toFile());
    }
    finally {
      FileUtil.delete(tempFile);
    }
  }
public static synchronized void captureMemoryDumpZipped(@NotNull Path zipFile)