How to Use JMX Remote Monitoring?

JFrog Support
2021-04-20 07:59

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

1. Modify the $ARTIFACTORY_HOME/bin/artifactory.default (or, for service installations, the $ARTIFACTORY_HOME/etc/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’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 server

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