[aida] Reclaiming Memory in Aidaweb
Herbert König
herbertkoenig at gmx.net
Mon Oct 25 22:17:59 CEST 2010
Hi,
thanks to all who replied. Bruno's Tip worked and brought back 60MB of
memory. After garbageCollect and forgetDoit's didn't help an image
saveAndQuit actually brought it back. Then following Mariano's clue,
in Delay's class var SuspendedDelays I unscheduled all 161 delays and
then sent that heap a removeAll. Another save shrunk the image for
another 40MB.
JM> [WebSessionManager allInstances do:
JM> [:each | each removeNonactiveGuestSessions].
This one hung the image, very little Processor load, alt dot got the
debugger but the UI stayed unresponsive.
JM> [HTTPConnection allInstances do: [:each | each close].
No help from this.
JM> WebSessionManager allInstances do:
JM> [:each | each removeGuestSessions].
Hung the image as before.
JM> WebSessionManager allInstances do:
JM> [:each | each releaseApplicationState].
Hung the image.
JM> WebSessionManager>>>releaseApplicationState
JM> This method now do a really detailed cleanup of sessions, it clears all
JM> instances of Apps, but also nils last requests etc. The same goes with
JM> methods #removeGuestSessions and #removeNonactiveGuestSessions.
JM> I namely also had similar problems for a while but with this patch now I
JM> manage to control session state successfully.
Thanks I' ll look into these to learn. They should come handy in an
intact image.
All in all it looks like I messed up the image badly (though I have no
clue how I did it). Maybe I stumbled across an oddity of cog.
What I actually did was creating one million datapoints in my app in
an attempt to measure cog's performance. Actually I did it twice
because the first time the jitting of methods used up the performance.
I got 4600 ms in Squeak 3.8 with 3.7 VM and 3400 and 984ms in trunk with cog.
I'll continue this because I'm interested in the performance of Aida +
my app. Actually I still look for ideas of how to do this apart from
wgetting the whole site from several computers.
I'll report any results here.
Cheers,
Herbert mailto:herbertkoenig at gmx.net
More information about the Aida
mailing list