Question

I am adding following JVM parameters to connect the application via JMX. After connected the application via jconsole over JMX, is there a menu that shows me the running application PID?

-Dcom.sun.management.jmxremote 
-Dcom.sun.management.jmxremote.port=5592 
-Dcom.sun.management.jmxremote.authenticate=false  
-Dcom.sun.management.jmxremote.ssl=false

Linux Redhat 6.2 java JDK 1.6

Was it helpful?

Solution 2

You can use jps

$ jps -lm
3457 com.intellij.idea.Main
3524 org.jetbrains.idea.maven.server.RemoteMavenServer
12059 org.netbeans.Main --userdir /home/peter/.visualvm/7u14 --cachedir /home/peter/.cache/visualvm/7u14 --branding visualvm
12162 sun.tools.jps.Jps -lm

VisualVM is a replacement for jconsole.

enter image description here

OTHER TIPS

I have tracked the java.lang->RunTime->Name I think format of Name Attribute starts with PID So running applications IP is 5741 enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top