On Friday 22 February 2002 08:59 pm, Jay Love wrote:
> Chuck-
>
> Am I seeing things, or are the sessions leaking memory again?
>
> Lower the session expiration time.  Hit the CountVisits servlet
> several thousand times and watch the memory creep up.  Then, as the
> sessions expire, I don't see the memory coming down like it should.
>
> Do you see this?
>
> Jay


Basically, yes, but read on:

I'm using SessionMemoryStore with a time out of 1 on Python 2.1.1 on 
Linux with Webware cvs. I cleared out my Sessions/*.ses before 
launching the app server.

The memory grew and after the sessions had expired (according the Admin 
servlet), the memory was the same, which smells like a leak, BUT...

What's also interesting is that when I reran the test program, after 
expirations, the memory didn't grow anymore except for a couple blips 
(that came back down).

It was like Python would not let go of the memory it didn't need, but 
it was certainly willing to reuse it.

On a third run, I got the same thing: just a little more creep. On the 
4th run, no creep at all. On the 5th run, I lose 8K right away and then 
another 8. On the 6th run, no creep at all.

I'm letting the sessions expire between runs.


So is this retain-but-reuse-memory a Python thing? A Linux thing? 
WebKit?


My program is in CVS at:
        Webware/WebKit/Research/TestForLeaks.py

Give it a spin. See what you think.


-Chuck

_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to