The Log JMX Metrics scheduled job sends JMX metrics to atlassian-confluence-jmx.log log file. More about it on Live Monitoring Using the JMX Interface.

      Steps to Reproduce

      1. In an instance running Confluence 7.17 or higher, validate the "Log JMX Metrics" is enabled:
        1. Go to Administration > General configuration > Scheduled jobs.
        2. Search for the Log JMX Metrics and validate that its status is Enabled.
        3. If it is Disabled, enable it.

      Expected Results

      The metrics described in Live Monitoring Using the JMX Interface are written to atlassian-confluence-jmx.log:

      • CacheStatistics
      • IndexingStatistics
      • MailTaskQueue
      • RequestMetrics
      • SystemInformation
      • ThreadPool
      • OS
      • GC
      • Threading
      • TomcatManager
      • RequestProcessor

      Actual Results

      Metrics ThreadPool, TomcatManager, and RequestProcessor are not written to atlassian-confluence-jmx.log leaving them blank in the file:

      2024-04-30 18:46:00,044 ThreadPool: []
      2024-04-30 18:46:00,044 TomcatManager: []
      2024-04-30 18:46:00,044 RequestProcessor: []
      
       
      2024-04-30 18:47:00,069 ThreadPool: []
      2024-04-30 18:47:00,070 TomcatManager: []
      2024-04-30 18:47:00,070 RequestProcessor: []
      

      Workaround

      Manually edit Tomcat's server.xml to switch the Engine name from Standalone to Catalina:

      <Engine name="Catalina" defaultHost="localhost" debug="0">
      

      After the changes are done, restart Confluence.

      If running Confluence DC, repeat the same procedure for each node in the cluster.

            [CONFSERVER-95948] Log JMX Metrics missing data

            Quan Pham added a comment -

            A fix for this issue is available in Confluence Server and Data Center 9.1.1. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Quan Pham added a comment - A fix for this issue is available in Confluence Server and Data Center 9.1.1. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Quan Pham added a comment -

            A fix for this issue is available in Confluence Server and Data Center 8.5.17. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Quan Pham added a comment - A fix for this issue is available in Confluence Server and Data Center 8.5.17. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Quan Pham added a comment -

            A fix for this issue is available in Confluence Server and Data Center 7.19.29. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Quan Pham added a comment - A fix for this issue is available in Confluence Server and Data Center 7.19.29. Upgrade now or check out the Release Notes to see what other issues are resolved.

              3061d200deff Arpan Agrawal
              d572fd45fe13 Marcio Ribeiro (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: