[Zope-dev] Memory Leaks

Andy McKay andy@agmweb.ca
Tue, 23 Jul 2002 11:13:16 -0700


Hmm of course it doesnt mean ZPT expressions are causing the leak, but are a
side effect. Of course my DTML ZopeZen is watertight and isnt leaking at all
:)

----- Original Message -----
From: "Stefan H. Holek" <stefan@epy.co.at>
To: "Andy McKay" <andy@agmweb.ca>
Cc: <zope-dev@zope.org>
Sent: Tuesday, July 23, 2002 3:37 AM
Subject: Re: [Zope-dev] Memory Leaks


> I do also see the ZPT expression stuff leaking. In my case in this order:
>
> Products.PageTemplates.Expressions.SubPathExpr
> Products.PageTemplates.Expressions.PathExpr
> Products.PageTemplates.ZRPythonExpr.PythonExpr
>
> This one does *not* go away when setting ZOPE_SECURITY_POLICY=PYTHON. I am
> also leaking refs to persistent User objects; may be a side effect
though -
> like your DateTimes.
>
> The site in question serves large ZSQL result sets via ZPT to
authenticated
> users. No CMF/Plone involved.
>
> Stefan
>
>
> --On Montag, 22. Juli 2002 13:45 -0700 Andy McKay <andy@agmweb.ca> wrote:
>
> > Hey all,
> >
> > A client of mine seems to be plagued with memory leaks. I have a CMF /
> > Plone site on We fixed some security issues that caused a major leak
this
> > is the same I believe as http://collector.zope.org/Zope/421, by jiggling
> > settings this no longer an issue. Anyway we are still getting some minor
> > leaks that severly limit the amount of the traffic the box is going to
be
> > able take. Lots of different objects are being leaked, including good
old
> > DateTime, however I dont believe its this, DateTime just happens to be
> > there.
> >
> > Possible culprits are (trimmed down debug page) ZPT:
> > Products.PageTemplates.Expressions.PathExpr,
> > Products.PageTemplates.Expressions.SubPathExpr,
> > Products.PageTemplates.TALES.TALESError etc...
> > or AccessControl AccessControl.unauthorized.Unauthorized,
> > AccessControl.SecurityManager.SecurityManager etc...
> >
> > A quick rummage through LeakFinder hasn't helped too much so Im not sure
> > what too recommend. Good old install ZEO and restart Zope every few
hours?
> > Is anyone else having issues?
> >
> > Configuration:
> >
> > Plone 0.99 "Almost There"
> > CMF Beta 1.3 beta 1
> > Zope 2.5.1
> > Python 2.1.3
> > RedHat Linux 7.1
> > Using Apache and pcgi to serve...
> > --
> >   Andy McKay
> >
> >
> >
> >
> > _______________________________________________
> > Zope-Dev maillist  -  Zope-Dev@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-dev
> > **  No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope )
>
> --
> Those who write software only for pay should go hurt some other field.
> /Erik Naggum/
>