Bugs item #1035511, was opened at 2004-09-27 16:39 Message generated for change (Comment added) made by maartenc You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1035511&group_id=16035
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Wonne Keysers (wonnekeysers) >Assigned to: Maarten Coene (maartenc) Summary: Cache never cleared or garbage collected Initial Comment: Due to 'hanging' references in the dom4j caching mechanism, the following classes are never garbage collected: org.dom4j.DocumentFactory org.dom4j.Namespace org.dom4j.QName org.dom4j.io.OutputFormat org.dom4j.tree.ConcurrentReaderHashMap org.dom4j.tree.ConcurrentReaderHashMap$BarrierLock org.dom4j.tree.ConcurrentReaderHashMap$Entry org.dom4j.tree.NamespaceCache org.dom4j.tree.QNameCache I found the issue with jProfiler when hot-deploying J2EE applications (.ear) on JBoss 3.2.6RC2 with dom4j as an embedded jar. The problem also occurs when using dom4j only as server library. It is most likely that the same problem also exists in other environments... ---------------------------------------------------------------------- >Comment By: Maarten Coene (maartenc) Date: 2004-10-09 13:51 Message: Logged In: YES user_id=178745 Wonne, I've changed the NamespaceCache to use WeakReferences holding the NameSpace objects. Could you give it a try and let me know what the effect is? I've planned to remove this whole caching in a dom4j 2.0 release... thanks Maarten ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1035511&group_id=16035 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev