I answered my own question so I thought I would post it here :) Looks like there was an issue with APC 3.0.18 that was causing the problems.<br><br>Further discussion is here: <a href="http://groups.google.com/group/highload-php-ru/browse_thread/thread/33a2273b51bc41d8#">http://groups.google.com/group/highload-php-ru/browse_thread/thread/33a2273b51bc41d8#</a><br>
<br><div class="gmail_quote">On Wed, Apr 30, 2008 at 11:27 PM, Davy Campano <<a href="mailto:dcampano@gmail.com">dcampano@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
After a little more research, it looks like the php-cgi processes that are being proxied to by nginx may be the problem. It looks like the php-cgi processes had a lot of files left open.<br><br>I ran `lsof | wc -l` and the result was 139566<br>
<br>After a restart of the php-cgi processes, the result was only 12045<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Wed, Apr 30, 2008 at 10:46 PM, Davy Campano <<a href="mailto:dcampano@gmail.com" target="_blank">dcampano@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>Davy Campano <dcampano@...> writes:<br>
<br>
><br>
> I'm getting a "Too many open files in system" error after running for about 10<br>
minutes. I'm in the process of testing out nginx and it's a pretty busy server<br>
doing around 200 requests/sec. My current open file limit is 131072. Does<br>
anyone know a safe amount to set this to for a 32-bit linux system with 6GB ram?<br>
<br>
</div></div>ulimit -n actually returns 1024, i'm thinking this should be higher<br>
<br>
cat /proc/sys/fs/file-max returns 131072<br>
<br>
<br>
<br>
<br>
<br>
</blockquote></div><br>
</div></div></blockquote></div><br>