<div>Ilan,</div><div><br></div>Try:<div><br></div><div>ulimit -n</div><div><br></div><div>Scott</div><div><br><div class="gmail_quote">On Mon, Aug 30, 2010 at 5:17 PM, Ilan Berkner <span dir="ltr">&lt;<a href="mailto:iberkner@gmail.com">iberkner@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Our site is getting busy and we are now getting these errors:<div><br></div><div><div>2010/08/30 16:10:47 [alert] 4729#0: accept() failed (24: Too many open files)</div>

</div><div><br></div><div>I&#39;ve already looked online in several places but am unclear about how to more clearly diagnose the problem and correct.  Any help as always is greatly appreciated.</div>
<div><br></div><div>Running: cat /proc/sys/fs/file-max</div><div><br></div><div>yields: 800669</div><div><br></div><div>Running ulimit</div><div><br></div><div>yields: unlimited</div><div><br></div><div>Top of Nginx configuration looks like this:</div>


<div><br></div><div><div>worker_processes  5;</div><div><br></div><div>events {</div><div>    worker_connections  4096;</div><div>}</div></div><div><br></div><div>I&#39;ve looked here:</div><div><br></div><div><a href="http://www.ruby-forum.com/topic/137385" target="_blank">http://www.ruby-forum.com/topic/137385</a></div>


<div><br></div><div>and here:</div><div><br></div><div><a href="http://nginx.2469901.n2.nabble.com/worker-rlimit-nofile-os-vs-master-vs-workers-td3453734.html" target="_blank">http://nginx.2469901.n2.nabble.com/worker-rlimit-nofile-os-vs-master-vs-workers-td3453734.html</a></div>


<div><br></div><div>Running CentOS</div><div><br></div><div><br></div><div><br></div>
<br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
<br></blockquote></div><br></div>