[Zope] memory leak problems

Peter Bengtsson mail@peterbe.com
Wed, 19 Dec 2001 10:00:16 +0100


tisdagen den 18 december 2001 23:43 skrev Dieter Maurer:
> Peter Bengtsson writes:
>  > The script crawls through a folder structure which contains Photo's and
>  > subfolders.
>  > It returns a healthy list of about 400 Photo's (from the Photo product)
>  > which are all object referenses.
>  > It works like it's supposed to, but the server leaks like hell when I
>  > run this. From about 5-10% of the memory to up to 50-70%!!
>  > Having accidently triggered this script I have to restart the server.
>
> This is not a leak.
>
>   Your script forces Zope to load 400 photos from ZODB into
>   memory. This requires space...

But they are just references, right? References to the objects.
I can't just use objectIds because the returning list I want to sort by a 
property on the photoobjects.

I'll try ZopeFind or whatever that thing is called. Any other suggestions?