goja-core/src/main/java/goja/core/kits/lang/JVMKit.java
public static int getPid() {
        String name = ManagementFactory.getRuntimeMXBean().getName();
        int indexOf = name.indexOf(StringPool.AT);
        if (indexOf > 0) {
            return Integer.parseInt(name.substring(0, indexOf));
        } else {
            return -1;
        }
    }
public static int getPid() {
        String name = ManagementFactory.getRuntimeMXBean().getName();
        int indexOf = name.indexOf(StringPool.AT);
        if (indexOf > 0) {
            return Integer.parseInt(name.substring(0, indexOf));
        } else {
            return -1;
        }
    }
得到当时进程PID,如果没有得到，返回-1

@return 进程PID