oh, and one more thing, restarting nginx seems to fix everything (until the error pops up again a day or so later :-)<br><br><div class="gmail_quote">On Mon, Nov 17, 2008 at 2:48 AM, Arash Ferdowsi <span dir="ltr">&lt;<a href="mailto:arash@getdropbox.com">arash@getdropbox.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">hi,<div>i&#39;m seeing a strange &#39;too many open files&#39; error with nginx (which I&#39;m sure many of you have seen before):</div>
<div><br></div><div>2008/11/17 02:15:02 [alert] 21748#0: accept() failed (24: Too many open files) while accepting new connection on <a href="http://67.228.78.114:80" target="_blank">67.228.78.114:80</a></div>
<div><br></div><div>strangely enough, I have the following line in /etc/security/limits:&nbsp;</div><div>* hard nofile 524288</div><div><br></div><div>and ulimit -n returns the same number. I have 2 workers set to a max of&nbsp;262144 connections.&nbsp;upon receiving that error (and after past&nbsp;occurrences) I&#39;ve run lsof and gotten &lt; 10k sockets. additionally, I have a nearly identically configured machine (running twisted) where each process is handling ~15k connections. so I&#39;m a loss as to what&#39;s going on here (and suspect some subtle bug in nginx or in my server configuration. any help would be greatly appreciated!</div>

<div><br></div><font color="#888888"><div><div><br>-- <br>Arash Ferdowsi<br>CTO, Dropbox<br>913.707.5875 (m)<br>
</div></div>
</font></blockquote></div><br><br clear="all"><br>-- <br>Arash Ferdowsi<br>CTO, Dropbox<br>913.707.5875 (m)<br>