You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Laxman (JIRA)" <ji...@apache.org> on 2010/02/27 10:48:05 UTC
[jira] Updated: (SOLR-1798) Memory leak in FastLUCache
[ https://issues.apache.org/jira/browse/SOLR-1798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Laxman updated SOLR-1798:
-------------------------
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.
{noformat}
cumulativeStats = (List<ConcurrentLRUCache.Stats>) persistence;
cumulativeStats.add(cache.getStats());
{noformat}
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.
was:
Every time a commit happens two Stats instances [org.apache.solr.common.util.ConcurrentLRUCache.Stats] are leaking.
Following code to maintain cumulative cache statistics causing this Stats object leak.
{noformat}
cumulativeStats = (List<ConcurrentLRUCache.Stats>) persistence;
cumulativeStats.add(cache.getStats());
{noformat}
> Memory leak in FastLUCache
> --------------------------
>
> Key: SOLR-1798
> URL: https://issues.apache.org/jira/browse/SOLR-1798
> Project: Solr
> Issue Type: Bug
> Components: search
> Affects Versions: 1.4, 1.5
> Reporter: Laxman
> Fix For: 1.5
>
>
> 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.
> {noformat}
> cumulativeStats = (List<ConcurrentLRUCache.Stats>) persistence;
> cumulativeStats.add(cache.getStats());
> {noformat}
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.