Remote JMX monitoring Jconsole JDK 1.7.0_91

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"
#wrapper.java.additional.27="-Dcom.sun.management.jmxremote.rmi.port=1100"

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, , .

enter image description here

enter image description here

. - - , , .

+4
1

, . , 3 , .

C:\Program Files\VMware\vCenter Server\vdcs\vdcserver\conf\server.xml

<Listener accessFile="${catalina.base}/conf/jmxremote.access" authenticate="false" bind="11.168.32.xx" className="com.springsource.tcserver.serviceability.rmi.JmxSocketListener" passwordFile="${catalina.base}/conf/jmxremote.password" port="${base.jmx.port}" useSSL="false"/>

, , wrapper.conf, 127.0.0.1. false, , . , .

0

Source: https://habr.com/ru/post/1656962/


All Articles