[Seaside] instances of WAComponent
dima-sender-3c337a at yasp.com
Fri May 19 09:51:14 UTC 2006
In Squeak I do this once per day on a production Seaside server:
Just to clear memory of Seaside things.
Bany, Michel wrote:
>>Why do I use this solution? Because the garbage collector
>>(VW) does not remove old instances (unreferenced). When
>>instances of WAComponent are big, the image grows, grows...
> The VW garbage collector *does* remove the unreferenced instances,
> it just does not tell you when.
>>Each sessions contains components... When there is a lot of
>>users (sessions), there is much more components!
>>Server falls unusable! :-(
> You can get rid of expired sessions using this :
> Seaside.WARegistry allGeneralInstances do: [:ea | ea
> To prevent the image growth, you may want to execute the above
> every now and then.
> You may also want to give more memory to VW. The default is 160MB, a bit
> for a Seaside server.
> DefaultMemoryUpperBound := 500 * 1000000. "500MB"
> DefaultGrowthRegimeUpperBound := 100 * 1000000. "100MB"
> DefaultFreeMemoryUpperBound := 50 * 1000000. "50MB"
> ObjectMemory installMemoryPolicy: self new setDefaults.
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the Seaside