[Zope] Memory Leaks, an Observation

Jim Washington jwashin at vt.edu
Sun Mar 7 16:01:50 EST 2004


Just an observation that I have not heard of yet.

I have a filesystem product that until recently relied on some TTW 
Script(Python)s to do interfacing with some ZSQL Methods.

What happened in that configuration was refcounts of those python 
scripts and their associated containers (in cache extreme detail) 
incrementing and never going away, a substantial memory leak that 
necessitated restarting the server regularly.  They showed up on the 
main Debug page in the Top Refcounts listbox as lots of 
Acquisition.ImplicitAcquirerWrapper-s.

So, just to see if it was the Script(Python)s or the code itself, I put 
identically the same code as methods in the filesystem product.

Result:  No more runaway memory usage.  :)

YMMV.

-- Jim Washington



More information about the Zope mailing list