Java‎ > ‎

ManagementFactory

Get the PID of the Java (JVM) process
ManagementFactory.getRuntimeMXBean().getName();

Comments