You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Adam Heath (JIRA)" <ji...@apache.org> on 2014/06/25 22:21:25 UTC

[jira] [Assigned] (OFBIZ-4222) UtilCache has memory leak if many temporary caches are created

     [ https://issues.apache.org/jira/browse/OFBIZ-4222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Heath reassigned OFBIZ-4222:
---------------------------------

    Assignee: Adam Heath

> UtilCache has memory leak if many temporary caches are created
> --------------------------------------------------------------
>
>                 Key: OFBIZ-4222
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4222
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Philippe Mouawad
>            Assignee: Adam Heath
>              Labels: CACHE, LEAK, MEMORY
>
> Since some time UtilCache has been updated to replace the WeakHashMap by a ConcurrentHashMap:
> private static final ConcurrentHashMap<String, UtilCache<?, ?>> utilCacheTable = new ConcurrentHashMap<String, UtilCache<?, ?>>();
> I think this fix to concurrency issues has introduced a memory leak or at least a much bigger impact on Memory.
> Indeed descendent of AbstractCache (particularly AbstractEntityConditionCache, EntityListCache) tend to create many caches that do not need to always persist in time.
> The old WeakHashMap handled this by enabling them to disappear while today the Hard ref disables this.



--
This message was sent by Atlassian JIRA
(v6.2#6252)