On Dec 14, 2007 5:16 PM, Scott Derrick <<a href="mailto:lists@ruby-forum.com">lists@ruby-forum.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
after a couple minutes I get the following error<br><br>Errno::EMFILE (Too many open files -<br>script/../config/../tmp/sessions//ruby_sess.3b99572316c49027):<br><br>Once this happens mongrel can't find anything. the only recovery is the
<br>restart the web server.<br><br>The periodic render has an image_tag which appears to be opening the<br>image file and its not being released emediatly?<br><br>Anything I can do to fix this?<br><br>Scott<br><font color="#888888">
</font></blockquote><div><br>First, if it's creating a session for every hit something is not correct with the Rails code, investigate this.<br>If you cannot track it down try using either cookie or database sessions.
<br><br>That said, if you need to have more open files you can adjust you're open file limit:<br>See the file limit:<br><br>$ ulimit<br><br>Adjust the file limit:<br><br>$ ulimit 2048<br><br>^ ^ allows up to 2048 open files.
<br><br> ~Wayne<br><br><br> <br></div></div>