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: David Lucas (ddlucas) 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-11-22 20:14 Message: Logged In: YES user_id=178745 Probably the same issue as [ 1070309 ] ThreadLocal cache ---------------------------------------------------------------------- Comment By: Wonne Keysers (wonnekeysers) Date: 2004-10-11 15:42 Message: Logged In: YES user_id=505480 The Namespace is still holding reference to the NamespaceCache via its static final cache variable. Can it be that that is the problem? Because there is still no improvement. ---------------------------------------------------------------------- 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 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev