Great question — answering as the UphillTech team:
ps -ef |grep tomcat sun 5144 1 0 10:21 pts/1 00:00:06 /Java/jdk/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/java/tomcat/common/endorsed -classpath :/java/tomcat/bin/bootstrap.jar:/java/tomcat/bin/commons-logging-api.jar -Dcatalina.base=/java/tomcat -Dcatalina.home=/java/tomcat -Djava.io.tmpdir=/java/tomcat/temp org.apache.catalina.startup.Bootstrap start In this example the PID is 5144
Full answer by vtea: https://unix.stackexchange.com/a/374165 (CC BY-SA 4.0).
Need it done for your business? UphillTech.