<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What has most likely happened is your mongrels have jammed on something internal to your application, possibly database related. Once this happens mongrel will continue to accept requests, but those will be placed in a queue behind the mutex that rails places around itself. Each connection uses up 2 fd's on nginx's side and 1 on the mongrels side.<div><br></div><div>The situation will correct itself once the blockage has cleared itself from your mongrels but the real solution is to find the source of the blockage, not increase the number of fd's.</div><div><br></div><div>Cheers</div><div><br></div><div>Dave</div><div><br></div><div><div><html>On 01/04/2008, at 8:25 AM, Dan Webb wrote:</html><br class="Apple-interchange-newline"><blockquote type="cite">Hi All,<div><br></div><div>I'm running a Rails site with nginx/mongrel on a fairly well specced dedicated box w/ 4GB RAM and during a spike both the Mongrels and nginx logs started to complain about running out of file descriptors. &nbsp;I've googled for this and not found anything particularly useful so I wondered if anyone here has experienced this, has any fixes or any tips on how to diagnose the problem. &nbsp;The few posts found via Google all recommend adjusting the global descriptor limits (via ulimit) but its already set high (about 200000) and there are no per user limits set. &nbsp;I've not set&nbsp;<span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">worker_rlimit_nofile in nginx but Im not sure thats the problem as the mongrels where hitting the file descriptor limits as well.</span></div> <div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"><br></span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;">Any wisdom?</span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"><br> </span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;">Thanks,</span></div><div><br>-- <br>Dan Webb <br><a href="http://www.danwebb.net">http://www.danwebb.net</a><br><br>aim: danwrong123<br> skype: danwrong </div></blockquote></div><br></div></body></html>