[Zope-dev] Zope 2.7 memory behaviour

Dieter Maurer dieter at handshake.de
Mon Mar 22 14:42:47 EST 2004


Stefan Doerig wrote at 2004-3-22 17:46 +0100:
> ...
>The debug information looks rather strange to me, but I don't know 
>anything about internals of Zope.  Anyway I have here reference counts 
>going up fast.  Don't know whether this is normal or not.
>
>Class 	March 22, 2004 5:26 pm 	March 22, 2004 5:38 pm 	Delta
>Acquisition.ImplicitAcquirerWrapper 	850 	18136 	+17286
>ZPublisher.HTTPRequest.HTTPRequest 	145 	3026 	+2881
>ZServer.HTTPResponse.ZServerHTTPResponse 	139 	3019 	+2880
>ZPublisher.BaseRequest.RequestContainer 	135 	3015 	+2880
>DateTime.DateTime.DateTime 	51 	52 	+1

Apparently, your application is leaking "HTTPRequest" instances.

Are you storing acquisition wrapped objects in the REQUEST object?
Do not do this! It forms cyclic garbarge that cannot be recycled
by Python's cyclic garbage collector because the special
Zope classes have not yet been made compatible with GC (this
comes with Zope 2.8).

-- 
Dieter



More information about the Zope-Dev mailing list