How to Use JMX Remote Monitoring?

JFrog Support
2022-07-05 21:17

These instructions will enable you to monitor your Artifactory server from a remote machine:

1. Modify the $JFROG_HOME/artifactory/var/etc/system.yaml file to include the following Java arguments under the 'shared' section:shared:
    extraJavaOpts: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.rmi.port=9010 -Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=<YOUR_ARTIFACTORY_SERVER_HOSTNAME_OR_IP>"

You will need to modify these parameters accordingly:-Dcom.sun.management.jmxremote.port
-Dcom.sun.management.jmxremote.rmi.port
-Dcom.sun.management.jmxremote.ssl
-Djava.rmi.server.hostname

With Dcom.sun.management.jmxremote.authenticate set to true, you’ll need to use $JRE_HOME/lib/management/jmxremote.password.template as a template for your actual JMX password file: $JRE_HOME/lib/management/jmxremote.password.

You’ll also need to ensure that the user running Artifactory has read-only permissions on the jmxremote.password file. More information on JMX authentication can be found in the HERE.

2. Restart the Artifactory application

3. In your JConsole, select Remote Process and connect to the server and port that you've specified in your artifactory.default (or default) file. Authenticate this with the username/password specified in your jmxremote.password file.

User-added image