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

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment