[Mongrel] Why Mongrel with NginX

Hongli Lai lists at ruby-forum.com
Mon Aug 11 08:01:40 EDT 2008

John Hancock wrote:
> The easier and useful answers are never given on documentation, thanks 
> everybody.
> I'm just dropping Apache because it's not memory efficient and these 
> days with my question I've searching all about mongrel.
> There is a new branch of the Ruby language called "Ruby Enterprise 
> Edition" that seems to use enough memory to fit in my VPS. The problem 
> is the server it uses, Apache. For me there is not value to reduce the 
> memory usage of ruby when it is done into a platform that is not memory 
> efficient. Is there an adaptation of mongrel to use ruby enterprise?
> This is an awesome forum with awesome pals.

At the moment Mongrel can't use the copy-on-write optimizations provided 
by Ruby Enterprise Edition.

As for Apache, it's possible to tweak it to lower its memory usage to 
levels comparable to Nginx. The key lies in disabling all modules that 
you don't need, and using the worker MPM instead of the default prefork 
MPM, with settings comparable to Nginx's. The resulting memory usage is 
described at http://www.rubyenterpriseedition.com/comparisons.html.
Posted via http://www.ruby-forum.com/.

More information about the Mongrel-users mailing list