I noticed Solr auto-creates a metrics SolrJmxReporter if there is a platform "MBeanServer" that exists, which AFAICT is always. Thanks? Ehh, no thanks. It's not evident how to disable JMX after some fruitless google searches. Don't get me wrong, I like jconsole, jvisualvm, JFR etc and I think some of these things may rely on JMX but I don't particularly need Solr to expose its metrics to these tools ever since Solr gained pretty excellent /admin/metrics support that is easier to get at.
I see Solr's code that makes this decision in SolrXmlConfig.getMetricReporterPluginInfos and I could see that I could enhance it with a few lines of code to check pluginInfo.isEnabled(). Thus to disable JMX reporting, one would configure it with the enable="false" XML attribute. Or maybe we just remove the automatic enablement. BTW what's driving me to look at this is that there is some time spent registering and unregistering SolrCore level metrics to JMX when SolrCores are loaded and unloaded, and logs to this effect likewise. Not a big deal but it's something. ~ David Smiley Apache Lucene/Solr Search Developer http://www.linkedin.com/in/davidwsmiley
