From purely a memory consumption standpoint, is it generally more
efficient to run a simple Rails app using WEBrick alongside a separate
apache installation or to run Rails under FCGI and use Apache to bridge
to the Web?
I have looked through lots of docs and old forum posts. Most seem to
center on just getting Apache+Rails running, or on speed.
I am really not concerned about my Rails performance, as my app runs
sufficiently fast, is very simple and will not be used by more than a
handful of people (not at all at one moment).
I do care about memory, though, because I have to fit RoR,
Apache+mod_perl and the mysql server inside 160MB of RAM. I just slimmed
mysql way down in terms of memory use, so I think I will be OK to keep
using WEBrick. WEBrick+Rails is roughly 25MB of memory use, excluding
shared libs. If I can reduce that by putting it inside an FCGI process,
great, then I can give some memory back to mysql for db caching.
If not, no big deal.
Thoughts? Thanks for any help.