Active4D is not fully deallocating memory when sessions timeout.

The session deallocation in 2.1 is quite a bit different than in 2.0. When a session times out in 2.1, it is not deallocated until the next run of the session purger, which defaults to every ten seconds. When the purger runs, it calls On Session End for each timed out session, then deletes the session.



I said
not always because the next one or two requests seem to use a piece of the
previously allocated memory, but if another request comes in then memory is
allocated and not de-allocated when the Sessions timeout.

Forgive me, but I didn't quite understand that sentence.


The net result is that the allocated pool of memory slowly creeps up. After
about 20 requests the server had lost about 1 Meg memory.

But that memory should be reclaimed once they completely die. Have you checked the session monitor to see how many zombies you have?


Regards,

   Aparajita
   Victory-Heart Productions
   [EMAIL PROTECTED]
   www.aparajitaworld.com




Reply via email to