How do I use JMX Remote Monitoring?

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

1. Modify the $ARTIFACTORY_HOME/bin/artifactory.default file to include the following Java arguments:
export JAVA_OPTS="$JAVA_OPTIONS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.authenticate=true

-Dcom.sun.management.jmxremote.ssl=true -Djava.rmi.server.hostname=<ARTI_SERVER_HOSTNAME_OR_IP"

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

With Dcom.sun.management.jmxremote.authenticate 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 file. Authenticate with the username/password specified in your jmxremote.password file

User-added image