Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9374

Speed up Jmx MBean retrieval for FieldCache

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.1, 7.0
    • Fix Version/s: 6.3, 7.0
    • Component/s: Admin UI, JMX
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      The change made in SOLR-8892 allowed for Jmx requests for MBean info to skip displaying the full contents of FieldCache entries, and just return the count.

      However, it still computes all the field cache entry info but throws it away and uses only the number of entries. This can make the Jmx MBean retrieval quite slow which is not ideal for regular polling for monitoring purposes. We've typically found the Jmx call took over 1 minute to complete, and jstack output showed that building the stats for this bean was the culprit.

      With this patch, the time is much reduced, usually less than 10 seconds. The response contents are unchanged.

        Attachments

          Activity

            People

            • Assignee:
              shalinmangar Shalin Shekhar Mangar
              Reporter:
              TimOwen Tim Owen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: