public static void dumpHeap(String filePath, boolean live) {
        log.log(Level.INFO, "Will dump the heap to '" + filePath + "', with the live = " + live);
        try {
            getHotspotMXBean().dumpHeap(filePath, live);
        } catch (IOException e) {
            log.log(Level.WARNING, "Failed writing heap dump:", e);
        }
    }
Log message as severe error, then forcibly exit runtime, without running
exit handlers or otherwise waiting for cleanup.

@param message message to log before exit
@param thrown the throwable that caused the application to exit.
@param dumpThreads if true the stack trace of all threads is dumped to the
                  log with level info before shutting down
vespajlib/src/main/java/com/yahoo/protect/Process.java