How to Enable JMX Monitoring in Artifactory 7.X

How to Enable JMX Monitoring in Artifactory 7.X

AuthorFullName__c
Nandini Das
articleNumber
000005021
ft:sourceType
Salesforce
FirstPublishedDate
2022-08-25T05:59:29Z
lastModifiedDate
2024-03-10T07:45:52Z
VersionNumber
6

In previous versions of Artifactory, it was recommended to enable JMX monitoring by adding the requisite options to the file artifactory.default, as shown in the following article.

How to Use JMX Remote Monitoring  

Starting with 7.X, we no longer recommend modifying this file.

To enable JMX monitoring on 7.X, add the required JAVA parameters to the field shared.extraJavaOpts in the file $JFROG_HOME/artifactory/var/etc/system.yaml.

For example, the following YAML configuration should enable remote monitoring on port 9010:

shared:
    extraJavaOpts: “-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false”

Once you have set these values and restarted Artifactory, you should be able to connect to port 9010 in JConsole.

User-added image