Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Remote access to JMX is configured using the standard JVM JMX options. For example if you want to enable remote access without enabling TLS or authentication (this is extremely insecure, do not do this in production!), but using authentication against local access and password files:

Code Block
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9913 -Dcom.sun.management.jmxremote.authenticatessl=false -Djava.rmi.server.hostname=localhost -Dcom.sun.management.jmxremote.access.ssl=false -Djava.rmi.server.hostname=localhostfile=conf/jmx.access -Dcom.sun.management.jmxremote.password.file=conf/jmx.password

Then you can connect using jconsole specifying either of the following for the remote process, and supplying a username + password to match what you have configured:

  • localhost:9913
  • service:jmx:rmi:///jndi/rmi://localhost:9913/jmxrmi

...