<div>Hello,</div>
<div> </div>
<div>I&#39;m using nginx to send static files and reverse proxing to an apache of the same server for serving PHP files.</div>
<div> </div>
<div>I&#39;m getting a large amount of 500 internal server errors and</div>
<div>Lots of </div>
<div>2009/09/27 00:49:21 [alert] 22383#0: accept() failed (24: Too many open files)</div>
<div>in my nginx error logs when visitors peak.</div>
<div> </div>
<div>nginx.conf includes</div>user  apache apache;<br>worker_processes  12;<br>worker_connections  1024; 
<div> </div>
<div>accessing stub_status says </div>
<div>Active connections: 625 <br>server accepts handled requests<br> 233130990 233130990 400847438 <br>Reading: 8 Writing: 10 Waiting: 607 </div>
<div> </div>
<div>right now but was about Active connections was about 1200 when getting the errors</div>
<div> </div>
<div>[root@firewall2 ~]# cat /proc/sys/fs/file-max<br>372684<br>[root@firewall2 ~]# ulimit -a<br>core file size          (blocks, -c) 0<br>data seg size           (kbytes, -d) unlimited<br>scheduling priority             (-e) 0<br>
file size               (blocks, -f) unlimited<br>pending signals                 (-i) 77824<br>max locked memory       (kbytes, -l) 32<br>max memory size         (kbytes, -m) unlimited<br>open files                      (-n) 200000<br>
pipe size            (512 bytes, -p) 8<br>POSIX message queues     (bytes, -q) 819200<br>real-time priority              (-r) 0<br>stack size              (kbytes, -s) 10240<br>cpu time               (seconds, -t) unlimited<br>
max user processes              (-u) 77824<br>virtual memory          (kbytes, -v) unlimited<br>file locks                      (-x) unlimited</div>
<div> </div>
<div>I see no reason I should be bumping into the file open limits.</div>
<div> </div>
<div>Anyway know why I&#39;m getting the errors?</div>
<div>Thanks.</div>