I need to monitor my VCenter Server application(It's a Java application) using JMX.
I have seen many posts on this and followed but still I'm not able to get it to work.
The VCenter is running on a VM on our internal network.
Had 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"
#wrapper.java.additional.27="-Dcom.sun.management.jmxremote.rmi.port=1100"
I'm able to connect Jconsole to 1100 port locally. As soon as I start the service, I see that the port listens properly
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 displays 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 shows as 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
I see that there is some connection established, but still, jconsole complains that it is not able to connect
Troubleshooting steps were done:
1) Turned off firewall on the vcenter server machine to keep things simple 2) telnet to 1100 works from my laptop 3) tried copying the jmxremote_optional.jar to VMWARE_JAVA_HOME\lib which is C:\Program Files\VMware\vCenter Server\jre\lib according to this post https://meteatamel.wordpress.com/2012/02/13/jmx-rmi-vs-jmxmp/ 4) Able to ping hostname of server where Vcenter runs 5) tried without this wrapper.java.additional.27="-Dcom.sun.management.jmxremote.rmi.port=1100" 6) Tried tcpdump, but couldn't make any sense since I'm not a network guy.
Updating config images
Can't imagine anything else. If anyone else has some clue, please advice.