Remote JMX connection

前端 未结 12 1082
后悔当初
后悔当初 2020-11-29 15:54

I\'m trying to open a JMX connection to java application running on a remote machine.

The application JVM is configured with the following options:

  • com
12条回答
  •  天命终不由人
    2020-11-29 16:04

    In my testing with Tomcat and Java 8, the JVM was opening an ephemeral port in addition to the one specified for JMX. The following code fixed me up; give it a try if you are having issues where your JMX client (e.g. VisualVM is not connecting.

    -Dcom.sun.management.jmxremote.port=8989
    -Dcom.sun.management.jmxremote.rmi.port=8989
    

    Also see Why Java opens 3 ports when JMX is configured?

提交回复
热议问题