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

Memory leak in QueryResultsCache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 7.5
    • None
    • query
    • None

    Description

      There is a leak in memory observed when we set maxRamMB parameter in QueryResultsCache. In our cache we have set the below configuration:

      <queryResultCache class="solr.FastLRUCache"   size="5000"  initialSize="512" maxRamMB="1048" autowarmCount="0"/>

      The number of elements in the cache grown upto 320K in count and the size of the cache also went upto 9GB. Only inserts were happening to the cache and no evictions observed in the cache. Cache was not getting controlled by both size and maxRamMB parameters. If we remove maxRamMB parameter and set only the size parameter then the QueryResultsCache is not growing beyond the limit set in size parameter. This is observed in SOLR 7.5 version. 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mharishkumar Harish Kumar Murugesan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: