[ZODB-Dev] Investigating a Zope reference leak... tracking object creation

Dieter Maurer dieter at handshake.de
Fri Jan 28 13:47:40 EST 2005


Ben Last (ZODBDev) wrote at 2005-1-28 14:20 -0000:
> ...
>The symptoms are that after several days of normal running on the agressively proxy-cached production site or a few hours on the
>development site under simulated load, the number of OFS.Image.Image references reaches very high levels, such as 17761.  In the
>cache at that time are just 4345 images.

The first thing you should do when you expect leaks: flush
the ZODB cache. Look again at your reference counts.

If you still see large reference counts, then you probably have a leak.
If not, then probably not.

Especially, if your image count would go down, then it would probably
mean that some of your persistent objects have images as
volatile attributes (e.g. in various scales (thumbnail, lowres, ...)).

-- 
Dieter


More information about the ZODB-Dev mailing list