Is there any documentation I can look at that might talk about how to put memory limits on mongrel? For instants, I might want to limit mongrel to 100 megs of ram. I know that I can monitor mongrel with monit and restart it automatically if it becomes a ram piggy.
Nathan, Monit is what you are looking for. http://www.tildeslash.com/monit/ On Apr 03, 2007, at 17:52 , Nathan Clark wrote:> Is there any documentation I can look at that might talk about how to > put > memory limits on mongrel? For instants, I might want to limit > mongrel to > 100 megs of ram. I know that I can monitor mongrel with monit and > restart it > automatically if it becomes a ram piggy. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users
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