[zope2-tracker] [Bug 143683] Re: Leak in Session Data Container

stephan_hofmockel dreagonfly at gmx.de
Sun Apr 11 15:11:27 EDT 2010


I think the 'something', which is holding the reference is the temporary
ZODB.

I did the same steps till number four and the SessionManager says zero elements are in the session data.
Checking the memory of Zope it says 67% used, hence behavior reproduced. 

Then goto 
/Control_Panel/Database/temporary/manage_cacheGC

and click on 'Minimize' which causes a reduce to ca 35% used memory. I
suppose the other half is still in the persistent part of the ZODB. I
created a second python script with the following content and executed
it once.

session = context.REQUEST.SESSION
s= 'Andy' 
session['sessiontest1']=s

After going to /Control_Panel/Database/temporary/manage_main and
clicking on 'pack' with parameter 0 the memory consumption jumps back to
2 percent.

I guess the behavior of the ZODB is correct, but not very suited for
that particular use case.


----
Test were done with:
http://svn.zope.org/repos/main/Zope/tags/2.12.4
Revision: 110569
python 2.6
ZODB3-3.9.4-py2.6-linux-i686.egg

-- 
Leak in Session Data Container
https://bugs.launchpad.net/bugs/143683
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list