he has the pre process problem not the general limit i guess :)<br><br><div class="gmail_quote">On Thu, Sep 10, 2009 at 4:27 PM, Maxim Dounin <span dir="ltr">&lt;<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello!<br>
<div><div></div><div class="h5"><br>
On Thu, Sep 10, 2009 at 11:10:28AM -0400, Ilan Berkner wrote:<br>
<br>
&gt; how to handle?<br>
&gt;<br>
&gt; 2009/09/10 10:09:30 [alert] 9691#0: accept() failed (24: Too many open<br>
&gt; files)<br>
<br>
</div></div>You have to tune your OS.  Under FreeBSD:<br>
<br>
sysctl kern.maxfiles=65535<br>
sysctl kern.maxfilesperproc=60000<br>
<br>
and then either restart nginx or reconfigure it with<br>
worker_rlimit_nofile set in config.<br>
<br>
Under Linux it should be something like:<br>
<br>
echo 65535 &gt; /proc/sys/fs/file-max<br>
<br>
(never tested).<br>
<br>
Consult your OS docs for instructions how to make this changes<br>
permanent (usually you have to add them into /etc/sysctl.conf).<br>
<font color="#888888"><br>
Maxim Dounin<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>the sun shines for all<br>