[KLUG Members] Apache: Limit the amount of RAM used by a child/altogether.
Adam Bultman
members@kalamazoolinux.org
Wed, 8 Oct 2003 19:23:09 -0400 (EDT)
Hey fellas.
Got a quick question for you all. I've got a couple of web servers that
are running a program called 'WebGUI'.
It's a slick program, but unfortunately, certain mistakes allow apache to
run away with itself; it uses up all the CPU and RAM, crashing the server
post-haste.
I've been googling for some time and can't find a decent way to limit the
amount of ram that apache can use. I've found a few things like
RLimitMEM, RLimitNPROC, etc. BUt they don't work; I can use up all my ram
no sweat with a single process.
Have any of you managed to find a way to limit RAM usage? I've had two of
my servers drop a couple of times already in the past two weeks alone, and
that really puts a dent in my effectiveness: "Dear client. This is why the
server died. XXX, OOO, Adam"
I'm not afraid to edit source code as long as it doesn't make for an
unstable machine.
Thanks!
Adam
--
adamb@glaven.org
[ www.glaven.org ]