If you’re running more than one Java application the ps commandis not enough. It will list the Java processes, but not which Java process runs which Java application. The jps comes with the JDK and is your friend!
$ jps -m
11686 Launcher launch B.A.A.B true false /home/simon/Apps/yEd/error.log /home/simon/Apps/yEd/output.log true true false s\_1cj1rui.png true true 417 281 315 265 Arial 0,0,0 8 500 /local/hudson\_jobs/jobs/yEd Deploy/workspace/yed-vcs/deploy/../deploy/install4j 319 234 Arial 0,0,0 8 500 -1
11654 SIPCommunicator
12087 jboss-modules.jar -mp /home/simon/Work/wildfly-8.2.0.Final/modules org.jboss.as.standalone -Djboss.home.dir=/home/simon/Work/wildfly-8.2.0.Final -Djboss.server.base.dir=/home/simon/Work/wildfly-8.2.0.Final/standalone --server-config=standalone-full.xml
12205 Jps -m