Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the process id of a running java process on mac?

I am trying to find the PID of a java webapp on a Mac. More specifically, I am trying to find the PID for a jetty webapp running on my Desktop. I have tried using Activity monitor and searched online all to no avail.

like image 477
user1521750 Avatar asked Jul 12 '12 18:07

user1521750


2 Answers

you can use jps, the Java Process Status tool:

jps

which will show you, for example:

13651 RemoteMavenServer

on my mac, jps lives in:

/usr/bin/jps
like image 166
Paul Sanwald Avatar answered Oct 12 '22 19:10

Paul Sanwald


Open a terminal and type jps -v

like image 23
jesse mcconnell Avatar answered Oct 12 '22 19:10

jesse mcconnell