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

Memory leak in FastLRUCache

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          Activity

            People

            • Assignee:
              yseeley@gmail.com Yonik Seeley
              Reporter:
              lakshman Laxman

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment