Using ps -ef | grep tomcat I found a tomcat server that is running. I tried kill -9 {id} but it returns \"No such process.\" What am I doing wrong?
ps -ef | grep tomcat
kill -9 {id}
I had to terminate activeMQ java process among many java processes on the server, and this one is started by the specific user (username is activemq). So good way of separating may be to start a process by a specific user :
ps -ef | grep "activemq" | awk '{print $2}' | xargs kill -9