My first blog on this site. Come across a good way to find and kill process on Linux in one go. Useful command!!
To find all java process running on Linux box -
ps -eaf | grep java | awk '{ print $2}'
To kill all java process running on Linux box -
kill -9 `ps -eaf | grep java | awk '{ print $2}'`
I hope this is useful to others too.