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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 7.1.1
    • 7.4
    • None
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dsmiley David Smiley
            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

                Slack

                  Issue deployment