On Mon, Mar 28, 2011 at 11:10:59AM +0000, Andy Smith wrote:
If it's always apache2 then it could actually be
apache using all
the memory and going into swap, then being too slow to do anything.
It might be something else though. Or it might not be memory-related
at all.
If it keeps happening maybe you could put Apache in a memory cgroup,
that way if it begins to use too much memory it'll be contained and the
VPS will be fully usable. It will also prevent the OOM killer touch
processes not in that cgroup, and give you a decent environment to debug
the issue.
We've been doing that in our VPS for about a week and it's been working
great for us.
Thanks,
Alberto