[Zope-dev] memory leak

Dieter Maurer dieter@handshake.de
Thu, 12 Apr 2001 00:43:14 +0200 (CEST)


Marco Nova writes:
 > > have you checked the debug page in the control panel and 
 > > noted any refcounts
 > > increasing?
 > 
 > Class  April 10, 2001 9:17 am  April 11, 2001 8:34 am
 > 
 > Products.ParsedXML.DOM.Core.Text                  3241  27318  +24077  
 > Products.ParsedXML.DOM.Core.Element               1777  14493  +12716  
 > Products.ParsedXML.DOM.ExpatBuilder.ExpatBuilder  81  1506  +1425  
 > Products.ParsedXML.Printer.PrintVisitor           3  107  +104  
 > Products.ParsedXML.DOM.Core.Document              10  112  +102  
 > 
 > Yes, I've a lot of refcounts leaks.
I do not know "ParsedXML"'s DOM implementation.

However, cycles are quite common for DOM's due to the
cyclic relationship between parent and children.
Unless great care is taken, DOM tree can be highly cyclic
and would therefore not be garbage collectable by Pythons
1.5.2 reference counting garbage collector.


Dieter