Welcome Guest | Login

Phusion Deployment Q's

Quick question on how you guys have mod_rails deployed/configured.

I'm running in a Ubuntu VPS and was able to easily get mod_rails up and running, but the only problem was that it was using to much memory. Apache + mod_rails was easily eating away my 512m of ram on the VPS.

I tried chaging the RailsPoolSize configuration but that didn't seem to do anything.

For now I have switched back to mongrel with 2 clusters, and that with apache is easily under 256m of ram, which is far better for this setup.

Any advice or info on configuring this? I would like to use mod_rails as it is easier to deal with, but if it sucks all my resources away it will have to wait.

Thanks for any information!

2008-05-28 09:34 AM

Nickst, yeah at this point mod_rails does seem to suck up a bunch of memory.  They are working on this, however (e.g. w/ their 'enterprise' edition). You can try setting the stack size to around 2MB

ulimit -s 2048

and restarting apache (that's what they recommend here where it says "It seems to leak memory like mad during startup. What's going on?"

2008-05-28 10:44 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.