[Mongrel] Mongrel error : EMFILE too many open files
Wayne E. Seguin
wayneeseguin at gmail.com
Sat Dec 15 08:20:19 EST 2007
On Dec 14, 2007 5:16 PM, Scott Derrick <lists at ruby-forum.com> wrote:
> after a couple minutes I get the following error
> Errno::EMFILE (Too many open files -
> Once this happens mongrel can't find anything. the only recovery is the
> restart the web server.
> The periodic render has an image_tag which appears to be opening the
> image file and its not being released emediatly?
> Anything I can do to fix this?
First, if it's creating a session for every hit something is not correct
with the Rails code, investigate this.
If you cannot track it down try using either cookie or database sessions.
That said, if you need to have more open files you can adjust you're open
See the file limit:
Adjust the file limit:
$ ulimit 2048
^ ^ allows up to 2048 open files.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mongrel-users