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, master (7.0)
    • Fix Version/s: 6.3, master (7.0)
    • Component/s: Admin UI, JMX
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None
    • Flags:
      Patch

      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.

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit b1b933eb43730a819a37ab0b33d78b09df838b33 in lucene-solr's branch refs/heads/master from Shalin Shekhar Mangar
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=b1b933e ]

        SOLR-9374: Speed up Jmx MBean retrieval for FieldCache

        Show
        jira-bot ASF subversion and git services added a comment - Commit b1b933eb43730a819a37ab0b33d78b09df838b33 in lucene-solr's branch refs/heads/master from Shalin Shekhar Mangar [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=b1b933e ] SOLR-9374 : Speed up Jmx MBean retrieval for FieldCache
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 5a16f1526057c5faac1f552d4e4caa364a50fccf in lucene-solr's branch refs/heads/branch_6x from Shalin Shekhar Mangar
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=5a16f15 ]

        SOLR-9374: Speed up Jmx MBean retrieval for FieldCache
        (cherry picked from commit b1b933e)

        Show
        jira-bot ASF subversion and git services added a comment - Commit 5a16f1526057c5faac1f552d4e4caa364a50fccf in lucene-solr's branch refs/heads/branch_6x from Shalin Shekhar Mangar [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=5a16f15 ] SOLR-9374 : Speed up Jmx MBean retrieval for FieldCache (cherry picked from commit b1b933e)
        Hide
        shalinmangar Shalin Shekhar Mangar added a comment -

        Thanks Tim!

        Show
        shalinmangar Shalin Shekhar Mangar added a comment - Thanks Tim!
        Hide
        TimOwen Tim Owen added a comment -

        No problem, thanks for merging!

        Show
        TimOwen Tim Owen added a comment - No problem, thanks for merging!
        Hide
        shalinmangar Shalin Shekhar Mangar added a comment -

        Closing after 6.3.0 release.

        Show
        shalinmangar Shalin Shekhar Mangar added a comment - Closing after 6.3.0 release.

          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:

              Development