public static int identifyPid() throws PidUnavailableException {
    return identifyPid(ManagementFactory.getRuntimeMXBean().getName());
  }
Returns the pid for this process.

@throws PidUnavailableException if parsing the pid from the name of the RuntimeMXBean fails

@see java.lang.management.RuntimeMXBean#getName()
geode-core/src/main/java/org/apache/geode/internal/process/ProcessUtils.java