Welcome! Log In Create A New Profile

Advanced

Re: php-cgi constantly recycles every couple of minutes

Rob Schultz
January 29, 2010 11:58AM
Right now you have to compile PHP separately for PHP-FPM. Which distro are you using? Currently it has finally been merged into Core and may be released with php 5.3.2 or possible 5.3.3. You can look more at http://php-fpm.org/download/

On Jan 29, 2010, at 8:38 AM, mindfrost82 wrote:

> 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?
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,45516,47247#msg-47247
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
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: 59
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready