How to Use JMX Remote Monitoring?

JFrog Support
2023-01-22 11:07

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: " -Djava.rmi.server.hostname=<YOUR_ARTIFACTORY_SERVER_HOSTNAME_OR_IP>"

You will need to modify these parameters

With 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