Linux command to get Tomcat PID

1. To show all process in Linux
$>ps

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 } ‘

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.