[Zope] My Zope is leaking memory ... Still no luck.
Jean-Francois.Doyon@CCRS.NRCan.gc.ca
Jean-Francois.Doyon@CCRS.NRCan.gc.ca
Fri, 29 Nov 2002 15:38:59 -0500
Here's another question:
Is actually normal for me to NOT see ANY memory usage decrease when I =
do a
pack followed by a minimize ?
I've been doing this trying to notice patterns for memory usage, and =
one
thing I noticed is that when I do this, and decrease the amount of =
total
objects in the cache by 25%, my memory usage actually stays the same!! =
That
seems horribly wrong somehow.
I know my python has garbage collection buit-in too ... which is a good
thing ...
Thanks,
J.F.
-----Original Message-----
From: Jean-Francois.Doyon@CCRS.NRCan.gc.ca
[mailto:Jean-Francois.Doyon@CCRS.NRCan.gc.ca]
Sent: Friday, November 29, 2002 3:07 PM
To: jo@meder.de
Cc: zope@zope.org
Subject: RE: [Zope] My Zope is leaking memory ... Still no luck.
Jo,
Really? Wow, you'd think such a required behavior would be documented =
...
Unless I missed it somewhere.
I do indeed use quite a bit of Python Scripts ... Problem is many of =
them
are part of the CMF ... I really don't want to have to go through every =
bit
of python script I have to do this, and would much prefer finding the =
root
cause!
Maybe I'll go digging for documented bugs and possible patches =
concerning
Ptyhon Scripts ...
Thanks,
J.F.
-----Original Message-----
From: Jo Meder [mailto:jo@meder.de]
Sent: Friday, November 29, 2002 2:48 AM
To: Jean-Francois.Doyon@ccrs.nrcan.gc.ca
Cc: zope@zope.org
Subject: Re: [Zope] My Zope is leaking memory ... Still no luck.
Am 28.11.2002, 20:41 Uhr
schr=E4b Jean-Francois.Doyon@CCRS.NRCan.gc.ca
<Jean-Francois.Doyon@CCRS.NRCan.gc.ca>:
=20
> Well, I'm still not having any luck tracking this down ... I've =
tried to
> keep a nice and close eye on the top refcounts, but I'm not seeing
anything
> strange, the really big delta is on the DateTime object, as the =
refcount
> seems to vary quite a bit, but the top one is fairly stable.
Do you use PythonScripts (ZODB-based that is, not Products)?=20
We had the same effect as the one you describe and solved it at least
partially by setting every object used inside our PythonScripts to None
before returning from the script. So if you have code along the lines =
of
"something=3Dcontext.restrictedTraverse('whatever')" or
"baz=3Dfoo.objectValues(bar)" (or anything like that) try setting
"something=3Dbaz=3DNone" before the script ends.=20
BTW: LeakFinder is a great tool, very useful in my experience and I
deeply regret that it is no longer working with 2.6. Be prepared to
restart your Zope after using it though.
Jo.
--=20
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 -=20
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )