hello,<br><br>i just moved yesterday a relatively big Wordpress blog from an old box with apache2 to a new one with nginx<br>Everything seemed to work ok until ~30 minutes ago when clients started to complain site is working slow and after few checks i noticed that i was gettting 
<font size="2">&quot;</font><font size="2">504 Gateway Time-out&quot; and slow loads on php pages but i had no problem with html pages and i have no clue why this is happening<br>im using lighty&#39;s spawn-fcgi to spawn php with the following config lines
<br><br>PHP_FCGI_CHILDREN=5<br>PHP_FCGI_MAX_REQUESTS=1000<br><br>i don&#39;t know how usefull this is but lsof showed me that i had ~1100 established nginx connections (4 workers with 1024 connections per worker so this is not an issue) and ~1000 connections to the php-cgi port (don&#39;t know if this should be a problem as i have 5 childrens with 1000 max requests each but maybe i didn&#39;t understand how this exactly works)
<br><br>thanks in advance<br></font>