How do I use JMX Remote Monitoring?

JFrog Support
2019-03-05 00:25

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

1. Modify the $ARTIFACTORY_HOME/bin/artifactory.default (or $ARTIFACTORY_HOME/etc/default for service installations) file to include the following Java arguments:
export JAVA_OPTS="$JAVA_OPTIONS -Djava.rmi.server.hostname=<ARTI_SERVER_HOSTNAME_OR_IP"

You will need to modify these parameters accordingly:

With set to "true", you will need to use the $JRE_HOME/lib/management/jmxremote.password.template as a template for your actual JMX password file: $JRE_HOME/lib/management/jmxremote.password
You will 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 Java documentation here

2. Restart the Artifactory server

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

User-added image