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

QParserPlugin maintains a list of classes recreated every time a Solrcore object is created

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.1.1
    • Fix Version/s: 7.4
    • Component/s: None
    • Labels:
      None

      Description

      QParserPlugin maintains a static map of Class Names to Class objects and everytime we create a SolrCore object this causes a lot of overhead doing classloader lookups.  Our system runs a lot of cores and the classloader gets bogged down when a lot of threads are creating solrcore objects.  

      There's no need to create these objects every time, similar classes such as 

      TransformerFactory store the object one time and reference it over and over again

        Attachments

        1. SOLR-12233.patch
          8 kB
          David Smiley

          Activity

            People

            • Assignee:
              dsmiley David Smiley
              Reporter:
              millerjeff0 Jeff Miller
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h