<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=081194319-15072003><FONT face=Arial color=#800000 size=2><EM>a 
meagre (non expert) hint on the memory leak follows </EM></FONT></SPAN></DIV>
<DIV><SPAN class=081194319-15072003><EM><FONT face=Arial color=#800000 
size=2></FONT></EM></SPAN>&nbsp;</DIV>
<DIV><SPAN class=081194319-15072003><EM><FONT face=Arial color=#800000 
size=2>DOM objects are notorious for having cyclic references and thus 
preventing garbage collection. Are you breaking this dependency and deleting the 
DOM objects when you're finished with them?</FONT></EM></SPAN></DIV>
<DIV><SPAN class=081194319-15072003><EM><FONT face=Arial color=#800000 
size=2></FONT></EM></SPAN>&nbsp;</DIV>
<DIV><SPAN class=081194319-15072003><EM><FONT face=Arial color=#800000 
size=2>Apologies if this is no longer relevant with the 2.x garbage collector. I 
still delete things to free up memory when I'm feeling nervous and am not sure 
when I'm doing it unnecessarily.</FONT></EM></SPAN></DIV>
<DIV><SPAN class=081194319-15072003><EM><FONT face=Arial color=#800000 
size=2></FONT></EM></SPAN>&nbsp;</DIV>
<DIV><SPAN class=081194319-15072003><EM><FONT face=Arial color=#800000 
size=2>best</FONT></EM></SPAN></DIV>
<DIV><SPAN class=081194319-15072003><EM><FONT face=Arial color=#800000 
size=2></FONT></EM></SPAN>&nbsp;</DIV>
<DIV><SPAN class=081194319-15072003><EM><FONT face=Arial color=#800000 
size=2>Tim</FONT></EM></SPAN></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #800000 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  xml-sig-bounces@python.org [mailto:xml-sig-bounces@python.org] <B>On Behalf Of 
  </B>Kamel Hamard (LMC)<BR><B>Sent:</B> Tuesday, July 15, 2003 8:06 
  PM<BR><B>To:</B> 'xml-sig@python.org'<BR><B>Subject:</B> [XML-SIG] PyXML API 
  problem<BR><BR></FONT></DIV>
  <P><FONT face=Arial size=2>Hi Guys,</FONT> </P>
  <P><FONT face=Arial size=2>Python version : 2.2.2</FONT> <BR><FONT face=Arial 
  size=2>PyXML Version : 0.8.2</FONT> </P>
  <P><FONT face=Arial size=2>I'm using PyXML API in my project and I have a 
  strange&nbsp; behaviour. I dont know if its a memory leak problem or 
  not.</FONT> <BR><FONT face=Arial size=2>The problem I'm expreriencing is the 
  following:</FONT> </P>
  <P><FONT face=Arial size=2>- I have a server receiving queries of audit and 
  inventory of the system. The server creates XML dom for each query it 
  receives.</FONT></P>
  <P><FONT face=Arial size=2>- Before receiving the queries, I take a look to 
  the memory used by my server and I see that its 9 Megs</FONT> </P>
  <P><FONT face=Arial size=2>- When the server starts processing the first audit 
  the memory grows up to 36 Megs </FONT></P>
  <P><FONT face=Arial size=2>- but the memory is never released. but the strange 
  is that when I do another audit, the memory dont grow anymore.</FONT> </P>
  <P><FONT face=Arial size=2>- How I can confirm that there is a memory 
  leak?</FONT> <BR><FONT face=Arial size=2>- How I can free this this memory 
  ?</FONT> <BR><FONT face=Arial size=2>- Is it normal that a dom takes all this 
  memory ?</FONT> </P>
  <P><FONT face=Arial size=2>I was using 4Suite API and I found a memory leak. 
  Its why I'm using PyXML now, Its slower and it takes more memory.</FONT> </P>
  <P><FONT face=Arial size=2>Thanks for any hints</FONT> 
</P></BLOCKQUOTE></BODY></HTML>