In my talk about the Security Manager, I demo an attack using the Attach API. The later requires to know about the PID of the JVM one wants to attach to. Because my good friend Evegeny Mandrikov couldn’t attend the talk at Devoxx Ukraine, I did a private demo just for him. To get the PID of the JVM I wanted to attach to, I used the 'ps -ef | grep java' command.