[ https://issues.apache.org/jira/browse/OFBIZ-4220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009606#comment-13009606 ]
Erwan de FERRIERES commented on OFBIZ-4220: ------------------------------------------- No problem. I will work with your patch directly. If later you think this would need a lib migration you tell me. Anyway, if a migration is needed or benefits the project, maybe switching to guava http://code.google.com/p/guava-libraries/ should be a better idea, as the 1.1 version is integrated in it. cheers, > Current implementation of UtilCache has a memory leak if maxInMemory is set > --------------------------------------------------------------------------- > > Key: OFBIZ-4220 > URL: https://issues.apache.org/jira/browse/OFBIZ-4220 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Environment: ALL > Reporter: Philippe Mouawad > Assignee: Erwan de FERRIERES > Priority: Critical > Labels: CACHE, LEAK, MEMORY > Attachments: TestMemoryLeak.java, leak.png, patch-4220.patch > > > If maxInMemory is set on caches, then current implementation will leak if > many puts are done in cache. > We made some load testing and current implementation ends very rapidly in an > OutOfMemory. > Philippe Mouawad > http://www.ubik-ingenierie.com -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira