to fine the process id you can use below command:
ps -aef|grep java // If you want to kill java process
ps -aef|grep tomcat // if you want to kill tomcat process
After executing this you will get a process id which you can kill using command
kill -9 processid
as per the image kill -9 15492.
Hope this will help you a lot.