When the server is booted, it starts off loading very little memory.
As people watch streams, memory use gradually increases. And increases! Right now, only 22 MB free.
But with only 10 people currently watching streams, I still have 100+ processes open.
It seems these (caches?) open but never close - like there is no garbage collection.
I appreciate the value of caches, but how can I limit the memory used by AMS??
I would like to reserve a little for other processes... I'm getting nervous when it approaches the SWAP-zone...
(this is AMS 5 on Centos 6.3, BTW)
You said I still have 100+ processes open....I guess you mean threads(a.k.a LWPs on Linux)
Generally if a amscore does not have nay pending connections it dies off on its own...However number of threads i.e LWPs won't die down, since they are actually threads of an active process.
One way to shutdown amscore peridoically is to set appropriate RollOver and MaxCore values inside LifeTime Tag of Application.xml...However note that when ever a core rolls any active connections on it will be terminated...Thus Rollover period should be larger that largest possible connection/playback duration in order to prevent any surprise to any end user.
Yes, I meant threads! :-) Thanks for the hints