2 messages in ru.sysoev.nginxnginx + php = timeout
FromSent OnAttachments
Anonymous CowardMar 9, 2007 6:04 am 
Jonathan VanascoMar 9, 2007 6:55 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:nginx + php = timeoutActions...
From:Anonymous Coward (maga@public.gmane.org)
Date:Mar 9, 2007 6:04:45 am
List:ru.sysoev.nginx

hello,

i just moved yesterday a relatively big Wordpress blog from an old box with apache2 to a new one with nginx 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 "504 Gateway Time-out" and slow loads on php pages but i had no problem with html pages and i have no clue why this is happening im using lighty's spawn-fcgi to spawn php with the following config lines

PHP_FCGI_CHILDREN=5 PHP_FCGI_MAX_REQUESTS=1000

i don'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't know if this should be a problem as i have 5 childrens with 1000 max requests each but maybe i didn't understand how this exactly works)

thanks in advance