How to find the process id of a running java process on mac?
24,135
Solution 1
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
Solution 2
Open a terminal and type jps -v
Solution 3
Try to use ps aux | grep APP_NAME
in Terminal.
Solution 4
This works for me
pgrep -f jetty
Author by
user1521750
Updated on February 03, 2020Comments
-
user1521750 over 4 years
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.