Last Updated: February 25, 2016
·
5.378K
· nrshrivatsan

Kill all Tomcat processes

https://gist.github.com/nrshrivatsan/1d2ea4fcdcb9d1857076

ps -ef | grep tomcat | awk '{print $2}' | xargs kill -9

Often we just wana kill all Tomcat processes running on a machine.

The above script is a one liner which kills all tomcat processes.