[Zope] memory leak in a very simple product. Way?

Christoph Wierling wierling@molgen.mpg.de
Wed, 16 Jan 2002 16:27:44 +0100 (MET)


On Wed, 16 Jan 2002, Max M wrote:

> Chris McDonough wrote:
>
> > I dont think I understand the issue.  You create some persistent objects.
> > You have references to those objects in a list.  You store the list in a
> > persistent object too.  You restart and you still have references to those
> > objects.  This isn't a leak, AFAICT.

that's right, but I don't restart the server in between.

> I assumed that the memory was still being used after the object had been
> deleted.

Well, I just deleted the persistent objects (lets call them A) which have
a list attribute which have references to other persistent objects (lets
call them B). So I expect that all B's will also be deleted as well,
because the references from the A's do no longer exist.
But as the debug info as well as the leak finder product tell me the 20000
references to the B's still exist.

christoph