Welcome! Log In Create A New Profile

Advanced

Re: php-cgi constantly recycles every couple of minutes

January 29, 2010 09:38AM
So I have tried a few more different things and php-cgi is still recycling way too often in my opinion.

I tried the earlier suggestion of using 16 children (instead of 4) with 4096 max requests. It does appear that the max requests is getting ignored completely, as Rob said. With 16 children, the site is MUCH faster, but php-cgi is getting recycled about every minute still. The reason I think its getting ignored is because I can set it to 1 million and it will still recycle just as often....unless there's something else causing this.

I also tried changing from TCP to a socket with the same result. Which do you guys suggest anyway?

Whenever php-cgi recycles itself, while using TCP, I'll get these in the nginx logs:
recv() failed (104: Connection reset by peer) while reading response header from upstream
connect() failed (111: Connection refused) while connecting to upstream

I might just have to switch to php-fpm, but if there's another underlying cause here, I'm not sure if it'll matter. Do you still have to recompile PHP to get php-fpm to work, or is there an easier way?
Subject Author Posted

php-cgi constantly recycles every couple of minutes

mindfrost82 January 25, 2010 02:17PM

Re: php-cgi constantly recycles every couple of minutes

Juan Fco. Giordana January 25, 2010 09:02PM

Re: php-cgi constantly recycles every couple of minutes

mike January 25, 2010 09:10PM

Re: php-cgi constantly recycles every couple of minutes

merlin corey January 26, 2010 06:00PM

Re: php-cgi constantly recycles every couple of minutes

mindfrost82 January 27, 2010 05:38PM

Re: php-cgi constantly recycles every couple of minutes

merlin corey January 28, 2010 04:54PM

Re: php-cgi constantly recycles every couple of minutes

Rob Schultz January 28, 2010 09:32PM

Re: php-cgi constantly recycles every couple of minutes

mindfrost82 January 29, 2010 09:38AM

Re: php-cgi constantly recycles every couple of minutes

Rob Schultz January 29, 2010 11:58AM

Re: php-cgi constantly recycles every couple of minutes

mindfrost82 January 29, 2010 12:04PM

Re: php-cgi constantly recycles every couple of minutes

merlin corey January 29, 2010 02:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 188
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready