[Zope-dev] Memory Leak debug - help

sean.upton@uniontrib.com sean.upton@uniontrib.com
Fri, 24 Aug 2001 09:25:30 -0700


Forgive my ignorance, but what are the characteristics of a leak in this
regard? =20

I use a catalog-intensive setup, and my memory footprint for Zope seems t=
o
slowly increase over several days.  Might this be a leak?

On my 2 ZEO identical clients, I get about an average of 50-60 catalog
queries per minute each, and load is distributed equally (round-robin) ov=
er
the 2 nodes by my proxy server.  Both nodes were restarted at the same ti=
me
yesterday, yet the one node that performed a re-indexing of about 16,000
objects early this morning has an RSS of 242 MB vs. 219 MB on the other
node.  The RSS on both nodes had grown to over 450 MB earlier yesterday
before I restarted Zope, so I wonder if that is a leak, esp. in regard to
re-indexing a catalog, or something else.

Forgive the ignorance of my question - I'm just trying to get a grasp on
this.

Sean

-----Original Message-----
From: Shane Hathaway [mailto:shane@zope.com]
Sent: Friday, August 24, 2001 8:15 AM
To: J=FAlio Dinis Silva
Cc: zope-dev@zope.org
Subject: Re: [Zope-dev] Memory Leak debug - help


J=FAlio Dinis Silva wrote:
> I've tracked down some memory leaks and now after running
> for 3 days zeo client's memory goes stable.
>=20
> But I would like to know if there is someone who can comment on this:
>=20
> -On a zope client running for 3 days I get on top of RefCount
> from DebugInfo the following class:
>=20
> BTrees.IIBtree.IIBucket
>=20
> Question1: does anyone can point out some products which do heavy
> use of this class soo I can debug on that? I know there is ZCatalog, bu=
t=20
> what else?
>=20
> Question2: does anyone know if it is safe to apply to this class
> the LeakFinder product patch?

It probably won't work.  IIBucket is implemented in C.  LeakFinder tries=20
to patch classes with an __init__ and a __del__, which only works with=20
Python classes.

ZCatalog could be the culprit if you have a lot of records.

Shane


_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -=20
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )