private static void forceShutDown() {
        try {
            Runtime.getRuntime().halt(-1);
        } catch (Throwable e) {
            LOGGER.error("exit failed, just halt, exception: ", e);
            Runtime.getRuntime().halt(-2);
        }
    }
ThreadUtils, used for handle specified throwable, such as oom, etc.
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/utils/ThreadUtils.java