[Mongrel] are memory limits on mongrel possible?

Alexey Verkhovsky alexey.verkhovsky at gmail.com
Wed Apr 4 13:03:14 EDT 2007


On 4/3/07, Wayne E. Seguin <wayneeseguin at gmail.com> wrote:
> >  memory limits on mongrel?
> Monit is what you are looking for.

There is also Process.rlimit.
The upside of rlimit, compared to monit, is that it will kill Mongrel
BEFORE it exceeds its allocation quota. The downside is that it will
not start another.

So, if you need to defend against normal memory leaks, monit is a must
have (for restarts), while Process.rlimit can be an extra precaution
against those cases when something is trying to allocate a lot of RAM
at once, and runs the box into swapping hell before monit has a chance
to kill the offending process.

Alex


More information about the Mongrel-users mailing list