Hi, how do you identify if a java process is running in Unix? So for example if I have 8 JVM's running but I want to make sure one of them has definately stopped?
Have a look at jps . You might have to try different options to find out, which one helps you best to identifiy your apps, like:
# jps -l
13439 org.apache.catalina.startup.Bootstrap
26508 sun.tools.jps.Jps
# jps -m
27720 Jps -m
13439 Bootstrap start
# jps -v
27708 Jps -Dapplication.home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64 -Xms8m
13439 Bootstrap -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -Xms1g -Xmx2g -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Dcatalina.base=/usr/share/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat6/temp -Djava.util.logging.config.file=/usr/share/tomcat6/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
---------- Post updated at 14:20 ---------- Previous update was at 12:56 ----------
Additional note: jps is part of the JDK, not the JRE.