[Zope-dev] memory eating Zope..
Chris McDonough
chrism@digicool.com
Mon, 04 Jun 2001 00:56:17 -0400
Hi Christian,
It looks like you're leaking requests. This is often the consequence of
setting an attribute on the REQUEST object which is aquisition wrapped.
For instance:
REQUEST.adtmldoc = REQUEST['PARENTS'][0]
When requests leak, references to all the objects referenced within the
request (acquisition wrappers, etc.) leak as well. This can be
disastrous and gets worse when the site is busy (when there are more
requests).
It used to be the case that tracking this problem down was tediously
difficult, and involved basically a binary search for leaks in all
methods on the site. But now, finding the cause is likely a job for
Shane's LeakFinder product:
http://www.zope.org/Members/hathawsh/LeakFinder .
Note that this is likely caused by some sort of brainbending circular
reference problem that might be helped by Python 2.X's cyclic garbage
collector.
- C
Christian Scholz wrote:
>
> Hi there!
>
> I got another problem with my Zope server and that seems to be
> a memory hole..
>
> I am using Zope 2.3.2 with Python 1.5.2 now on SuSE 7.0 (this
> seems to solve the hanging problem, which appeared on 7.1) and
> I use Python Script, ZSQL methods, ZMySQLDA and ZPatterns.
>
> Now using top I see over time how the memory consumption of the
> zope processes grows, which means I have to restart once a day
> as it then becomes too slow..
>
> When looking at the refcount in the debug section I see the following:
>
> Acquisition.ImplicitAcquirerWrapper: 7509
> DocumentTemplate.DT_Util.Eval: 719
> Products.ZPatterns.Expressions.Expression: 716
> ZPublisher.HTTPRequest.HTTPRequest: 457
> ZServer.HTTPResponse.ZServerHTTPResponse: 450
> ZPublisher.BaseRequest.RequestContainer: 447
>
> So Acquisition.ImplicitAcquirerWrapper seems to be referenced
> quite often (this is in an early state..)
>
> So does anybody know what this might cause? Or maybe how to track that
> problem down?
>
> (seems to be a long way with that server to become it stable.. ;-)
>
> Thanks in advance!
>
> Christian
>
> --
> COM.lounge http://comlounge.net/
> communication & design info@comlounge.net
>
> _______________________________________________
> 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 )