Linux command to get Tomcat PID

1. To show all process in Linux

2. To search for a process PID

$>ps -ef | grep java
Example java is the process name we want looking for PID

3. To search for PID of Tomcat
$>ps -ef | grep tomcat
$>ps -ef | grep tomcat-5.7-27 | grep java | awk ‘ { print $2 } ‘

Add Comment