I'm trying to connect to a remote JVM on a Linux box from JConsole on a Windows machine. I've made sure the ports (default ports 9102 and 9202) are open. Trying to connect immediately throws up a ConnectionFailedSSL1 ConnectionFailedSSL2. No other errors. I'm not exactly sure what I'm doing wrong or if I'm missing a step.
In order to access remotely to the JMX server, you have to declare the associated system properties:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
You may need to set the property com.sun.management.jmxremote.authenticate
to true
but then you would have to add below authentication ones:
-Dcom.sun.management.jmxremote.password.file=path/to/jmxremote.password
-Dcom.sun.management.jmxremote.access.file=path/to/jmxremote.access