[Seaside] Possible for WADispatcherEditor references to be
avi at beta4.com
Mon Nov 8 15:13:20 CET 2004
On Nov 8, 2004, at 3:07 PM, Yar Hwee Boon wrote:
> On Mon, 8 Nov 2004 14:55:18 +0100, Avi Bryant <avi at beta4.com> wrote:
>> On Nov 8, 2004, at 2:50 PM, Yar Hwee Boon wrote:
>>> I'm observing that my image seems significantly larger after running
>>> Seaside for a while. Its a 3.7 Basic image loaded with Seaside and a
>>> few of my packages which are rather small. I've stopped WAKom and
>>> did a Smalltalk garbageCollect. The windows XP task manager says its
>>> using 40MB. I've tried tracing and found that I have 2 instances of
>>> WADispatcherEditor. I'm rather lost tracing through all the
>>> references. Does anyone know if it is possible with
>>> WADispatcherEditor, or how I can track this down? Thanks.
>> Stopping WAKom won't do anything. Try "WARegistry clearAllHandlers"
>> and then GC.
> Thanks, that did the trick. I noticed that
> WADispatcherEditor>>clearCaches is a shortcut for this. I'm assuming
> that this can only be done when it the server is "offline"?
You can do it whenever, it's just that if people happen to be in the
middle of a session, they'll be unceremoniously booted from it...
> Also, is it possible that if this is not done often, a large amount of
> memory will be taken up?
That shouldn't be the case, though I suppose it depends what you
consider a "large amount". Because of the way session expiry works
right now, it's possible to have sessions sticking around for quite a
long time on a seldomly used application, and so if your session does
something fairly memory intensive (like, say, caching a bunch of object
data from GOODS), you can easily end up with a 40MB image, as you saw.
OTOH, during active use, old sessions should be thrown out more
aggressively, and so the memory usage will stay flat (probably at a
similar level to what you have in your development image). I haven't
heard any reports yet of images ballooning out of control (like, to 200
or 300MB) even during heavy use.
More information about the Seaside