<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv="Content-Type" content="text/html; charset=utf-8"> </HEAD>Not to bring up yesterday's discussion, but you might try using php-fpm and letting us know. <br/><br/><p>Sent from my Verizon Wireless BlackBerry</p><p><hr size=2 width=100% align=center tabindex=-1><b>From</b>:  Max <maxbear@gmail.com><br><b>Date</b>: Tue, 10 Mar 2009 22:18:30 +0800<br><b>To</b>: &lt;nginx@sysoev.ru&gt;<br><b>Subject</b>: Re: Nginx error<br></font></p>Thanks.<br><br>I just changed worker processes to 2 and worker connections to 1024.<br><br>But there problem is still there. It redirects me to 50x page from time to time.<br><br>The only way to make it work again is, kill all nginx process, restart it, and then I must type:<br><br>/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u nginx  -g nginx -f /usr/bin/php-cgi -P /var/run/fastcgi-php.pid<br><br>in order to make it works again. It seems the problem is related to fastcgi.<br><br>I am using 0.6.33-1.el5(nginx) and 1.4.18-1.el5.rf(lighttpd). Anyone got any idea what this happen?<br><br>Max<br><br><div class="gmail_quote">On Mon, Mar 9, 2009 at 2:09 AM, Cliff Wells <span dir="ltr">&lt;<a href="mailto:cliff@develix.com">cliff@develix.com</a>&gt;</span> 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 class="im">On Sun, 2009-03-08 at 21:29 +0800, Max wrote:<br> &gt; Hello,<br> &gt;<br> &gt; My nginx server always redirect all traffic to 50x page from time to<br> &gt; time. I can&#39;t even restart it. I need to reboot.<br><br></div>You *can&#39;t* restart Nginx, or restarting it doesn&#39;t help?<br><div class="im"><br> &gt; The worker_processes  5 and worker_connections is 4096, is it too<br> &gt; many?<br><br></div>Unless you have 5 or more cores, then that&#39;s almost certainly too many.<br> Try one worker process per core (maybe even just one, unless you are<br> serving tons of static files) and 1024 worker_connections.<br><br> I have no idea if this is related to the 50x errors you get.<br><div class="im"><br> &gt; How can I check what is the case of the problem? Thanks.<br><br></div>I&#39;d start with the error log and some details about your setup (starting<br> with your OS, Nginx version, and maybe what you are serving).<br><br> Regards,<br><font color="#888888">Cliff<br><br><br><br></font></blockquote></div><br>  </html>