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

Memory leak in FastLRUCache

    XMLWordPrintableJSON

Details

    Description

      Every time a commit happens two Stats instances [org.apache.solr.common.util.ConcurrentLRUCache.Stats] are leaking.

      Following code [org.apache.solr.search.FastLRUCache] to maintain cumulative cache statistics causing this Stats object leak.

          cumulativeStats = (List<ConcurrentLRUCache.Stats>) persistence;
          cumulativeStats.add(cache.getStats());
      

      Everytime a commit happens a new cache object is getting created and its stats is added to the list which is not released at all.

      Attachments

        1. SOLR-1798.patch
          4 kB
          Yonik Seeley
        2. SOLR-1798.patch
          0.4 kB
          Yonik Seeley

        Activity

          People

            yseeley@gmail.com Yonik Seeley
            lakshman Laxman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: