code: public static int getPid()
  	{
  		String pid = ManagementFactory.getRuntimeMXBean().getName();
  		int indexOf = pid.indexOf('@');
  		if (indexOf > 0) {
  			pid = pid.substring(0, indexOf);
  		}
  		return Integer.parseInt(pid);
  	}
docs: 获取当前JVM进程ID
  @return