public static int getPid() {
		String jvmName = ManagementFactory.getRuntimeMXBean().getName();
		return jvmName.indexOf('@') != -1 ? Integer.parseInt(jvmName.split("@")[0]) : -1;
	}
Return the process id for this process.

@return process id for this process
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/util/RuntimeUtils.java