I’ve recently been running up against the memory limits on TextDrive for
a Ruby on Rails app under development.
It’s running on FCGI/lighttpd with 2 listeners. I can restart it and
within a few clicks on random pages I can get it to fail for memory
While I haven’t written off the idea of a memory leak, I have been
unable to reproduce the problem on my development machine. I can run
mongrel or webrick and don’t see memory usage go up after a LOT of
browsing around and hitting it through the webservices API.
I think my app just gets me close to the 48MB limit. So, my questions:
Is the TxD memory limit too low? My app isn’t enormous, but it is
bigger than a simple blog or other basic Rails app like Strongspace or
something. I’ve seen memory usage posts from other folks that put their
app in the 40MB-70MB range. If this is the case, and TxD claims to be
the premier RoR host, why is their limit so low?
What techniques can I use to reduce memory usage?
Would another server technology be easier on memory?
I really like TxD, but they claim they can’t increase memory
allotment for me (even just to TEST the damn thing for a day). So, are
there other hosts that would be more amenable to this app?
Business hosting is a possibility (at TxD) and it will be necessary once
the app is released, but before I go through the trouble of moving the
app, I wanted to test some stuff out.