Guard, LastPage Memory Leak?

Federico Tomassini <[email protected]>
Newsgroups gmane.comp.python.twisted.web
Message-ID <[email protected]>
Hello,

I'm running a guarded app. Memory is not released on logout.
I read carefully nevow.guard and I'm debugging widely with
pdb and gc.

I encountered the following problem. It sounds really strange.
I discovered, using pdb and gc inside logoutPortal(), that
visited pages remain alive.

So, I created a WastingMemPage(rand.Page) class that, on __init__,
allocates ton of mem (no external referrer, memroy is allocate
inside the instance only). I will return it initializing each
time:

    def locateChild(self, ctx, segs):
       return WastingMemPage(), segs

Now, each time I hit one of this WastingMemPage, memory
usage grows. When I logout ( portalLogout() ), memory is
not released.

Now:

  * Is a rend.Page() not deleted once rendered?
  * Altough the previous question, why pages remain
    linked from something after portalLogout()?

What's happening? Am I making some mistake? Is there some
limit on portalLogout()?

py 2.5/2.4. Nevow 0.9.31.

Please, help!

-- 
efphe
Today is Pungenday, the 62nd day of Confusion in the YOLD 3175
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.