I need to track a VCenter Server application (this is a Java application) using JMX.
I saw a lot of posts about this and watched, but still I can't get it to work.
VCenter runs on a virtual machine on our internal network.
Made these changes in the wrapper.conf file
wrapper.java.additional.22="-Dcom.sun.management.jmxremote"
wrapper.java.additional.23="-Dcom.sun.management.jmxremote.port=1100"
wrapper.java.additional.24="-Dcom.sun.management.jmxremote.ssl=false"
wrapper.java.additional.25="-Dcom.sun.management.jmxremote.authenticate=false"
wrapper.java.additional.26="-Djava.rmi.server.hostname=hostname where vcenter runs"
I can connect Jconsole to port 1100 locally. As soon as I start the service, I see that the port is listening correctly
PS U:\> netstat -an | findstr 1100
TCP 0.0.0.0:1100 0.0.0.0:0 LISTENING
TCP [::]:1100 [::]:0 LISTENING
As soon as I try to connect it from my laptop, it will display this
PS U:\> netstat -an | findstr 1100
TCP 0.0.0.0:1100 0.0.0.0:0 LISTENING
TCP "ipofvcenterserver":1100 11.248.18.xx:51988 ESTABLISHED
TCP [::]:1100 [::]:0 LISTENING
[Update] I noticed that if I add Dcom.sun.management.jmxremote.rmi.port = 1100 and I connect using jconsole, the established connections will be shown below. But 11.248.18.xxx is not the IP address of the remote client (my laptop)
PS U:\> netstat -an | Findstr 1100
TCP 0.0.0.0:1100 0.0.0.0:0 LISTENING
TCP ipofrmiserver:1100 11.248.18.xxx:56728 ESTABLISHED
TCP ipofrmiserver:1100 11.248.18.xxx:56729 ESTABLISHED
TCP [::]:1100 [::]:0 LISTENING
, , jconsole ,
:
1) vcenter,
2) telnet to 1100
3) jmxremote_optional.jar VMWARE_JAVA_HOME\lib, C:\Program Files\VMware\vCenter Server\jre\lib https://meteatamel.wordpress.com/2012/02/13/jmx-rmi-vs-jmxmp/
4) ping , Vcenter
5) wrapper.java.additional.27 = "- Dcom.sun.management.jmxremote.rmi.port = 1100"
6) tcpdump, , .


. - - , , .