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

JMX name collision when running multiple SOLR instances/webapps in the same ServletContainer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4, 3.5
    • 3.6, 4.0-ALPHA
    • Build
    • Resin 3.1.6, possibly other application containers

    Description

      http://www.mail-archive.com/solr-user@lucene.apache.org/msg33921.html

      When i run multiple independent SOLR webapps both with JMX enabled there seems to be some sort of collision when registering Mbeans causing my application server to throw exceptions for each mbean it tries to register for all applications after the first.

      This seems to be due to collision issue of sorts with both applications trying to register their mbeans under the name "solr"

      This patch fixes the issue by allowing the user to specify the name under which MBeans are registered in solrconfig.xml like so:
      <jmx rootName="mySolr" />

      i went with rootName since in the code the variable is called jmxRootName.

      Constantijn Visinescu

      Attachments

        1. SolrConfig.java
          18 kB
          Constantijn Visinescu
        2. JmxMonitoredMap.java
          10 kB
          Constantijn Visinescu

        Activity

          People

            hossman Chris M. Hostetter
            visinescu Constantijn Visinescu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: