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:
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?