Is there a way to to find the main class name of a running JVM using its PID?
This is something that is already done in jvisualvm, for example.
The jps
command can be used:
jps -l | grep pid
-l
prints the full class name. See this link for the official documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With