[Zope-dev] Memory Leaks

Andre Schubert andre@km3.de
Wed, 24 Jul 2002 08:21:55 +0200


On Tue, 23 Jul 2002 12:37:39 +0200
"Stefan H. Holek" <stefan@epy.co.at> wrote:

> 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/
> 
> 
> _______________________________________________
> 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 )