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

Don't automatically register Solr's metrics with JMX (SolrJmxReporter)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • metrics
    • None

    Description

      Solr auto-creates a metrics SolrJmxReporter if there is a Java platform "MBeanServer" that exists, which AFAICT is always. Since JMX isn't disable-able (right?), I think Solr shouldn't do this. Pertinent code is in: SolrXmlConfig.getMetricReporterPluginInfos.
      To be clear, SolrJmxReporter will definitely still exist; it'll just be opt-in.

      https://lists.apache.org/thread/fhfsc2fnksz7tk5nqhjzb9cdy3qmh9gd

      Benefits are minor but it's something. Reduce core load & start time, and related logging of this. Perhaps there are positive security ramifications as well. Maybe it'll improve our test suite performance too.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dsmiley David Smiley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: