[Zope-dev] Re: Preliminary findings: Zope 2.7 leakage caused by errors

Dieter Maurer dieter at handshake.de
Fri May 21 16:57:43 EDT 2004


J. David Ibanez wrote at 2004-5-21 16:50 +0200:
>
>No, I don't use TranslationService. A quick glance at the code shows
>that TS uses several caches (dictionaries) which are stored in the request
>object: "_localizer_placeful_mc_cache", "_translation_service_cache"
>and "_ts_domain_cache".
>
>The values of these dictionaries are acquisition wrappers (objects returned
>by "unrestrictedTraverse" or explicitly built). Maybe the leak is there.

When these dictionaries are held in "other" (or "form" or "Lazy"),
then there is no problem -- as "other" is explicitly clear
when the request is closed.

However, when they are (direct) attributes of the request
object, then they will form cycles which almost surely
cause leakage.

-- 
Dieter



More information about the Zope-Dev mailing list