scotty wrote:
hybinet wrote:
Debian 5 is newer than Ubuntu Hardy...
Exactly

What happened there? I read "Debian" and thought "Ubuntu".
Because I am an idiot. Just like I put this thread in the LAMP forum and requested help with nginx.

Quote:
It won't work because the process does not die -- they just become zombies and require a kill -9

Yes, this is the issue. It just happened again today. With 15 children running, I haven't noticed any issues with the pages that are being served, but the swap thing has cropped up again with fastcgi.
I hadn't checked the error log for nginx, mine is in /usr/local/nginx/logs:
Code:
2009/03/30 18:21:31 [alert] 16982#0: worker process 16986 exited on signal 9
2009/04/04 14:48:35 [alert] 11041#0: worker process 11044 exited on signal 9
2009/04/06 03:51:22 [alert] 7300#0: worker process 7304 exited on signal 9
2009/04/06 04:01:51 [alert] 8350#0: worker process 8354 exited on signal 9
2009/05/08 15:47:27 [alert] 2464#0: worker process 2466 exited on signal 9
So, I guess the fastcgi children go zombie one at a time until it impacts nginx and then boom!
Maybe I'll try spawn-cgi when I have a chance. Easier than switching out to Debian.
Quote:
What I did before was running another script scanning /var/log/nginx/error.log -- something like a tail -f but immediately restart php-fcgi if some 502 error has been detected (and send me an email for notification). Again, upgrading to a different PHP version completely solves it.
Thanks for the tip. I assume you set it up in your hourly cron? I'll see if I can't figure out how to write up something like that for now.
I also thought I could just run a daily cron that restarts fastcgi.