[Zope] Tip: huge memory leak fixed (dtml and pythonscript)

Andy McKay andy@agmweb.ca
Fri, 2 Aug 2002 11:02:28 -0700


This sounds like the leak in AccessControl that Matt fixed recently. We have
been having similar Memory Leaks and apparently this is fixed in 2.6. What
version are you using?
--
  Andy McKay
  @gmweb Consulting
  http://www.agmweb.ca


----- Original Message -----
From: "Jo Meder" <jo@meder.de>
To: <zope@zope.org>
Sent: Friday, August 02, 2002 2:50 AM
Subject: [Zope] Tip: huge memory leak fixed (dtml and pythonscript)


>
> Hello everybody,
>
> after much gnashing of teeth and pulling out of hair we finally seem to
> have found the error in our ways. What we were doing led to a massive
> memory leak and I thought I'd let everbody know so you know what to
> avoid.
>
> Our setup is something like <dtml-document or method> calls
> <pythonscript> and <pythonscript> calls <restrictedTraverse> for some
> given <path>. The resulting <object> is then used to render some content
> and the resulting data is returned.
>
> Here comes the warning: If you don't explicitly set the <object>
> obtained by <restrictedTraverse> to <None> (maybe you could <del> it
> instead just as well) this <object> will be leaked with any
> <subobjects> instantiated along the way, namely a
> <ImplicitAcquirerWrapper> and (in our case) a <DateTime>.
>
>
> Hope this helps someone somewhere.
>
> Jo.
>
>
> --
> Internetmanufaktur Jo Meder ---------------------- Berlin, Germany
> http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33
> Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45
> 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97
> Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>