Sergey Budnevitch
October 16, 2012 05:36AM
On 16 Oct2012, at 12:58 , justin <nginx-forum@nginx.us> wrote:

> I set PHP-FPM to:
>
> listen.backlog = 256
>
> and restart PHP-FPM. It was slightly (very little) better, but still:
>
> This rush generated 6,114 successful hits in 1.0 min and we transferred
> 34.39 MB of data in and out of your app. The average hit rate of 98/second
> translates to about 8,476,385 hits/day.
>
> The average response time was 229 ms.

It is simple math: you have 8 php workers, each request take ~ 0.2s,
most of that time request spend in php, so you are able to serve about
40 requests per second. Either increase number of php worker processes
and/or buy new hardware, or tune your php application, use caching and so on.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

connect() to unix:/var/run/php-fpm/php.sock failed

Anonymous User October 16, 2012 04:43AM

Re: connect() to unix:/var/run/php-fpm/php.sock failed

Jérôme Loyet October 16, 2012 04:48AM

Re: connect() to unix:/var/run/php-fpm/php.sock failed

Anonymous User October 16, 2012 04:58AM

Re: connect() to unix:/var/run/php-fpm/php.sock failed

Sergey Budnevitch October 16, 2012 05:36AM

Re: connect() to unix:/var/run/php-fpm/php.sock failed

Anonymous User October 16, 2012 12:56PM

Re: connect() to unix:/var/run/php-fpm/php.sock failed

Sergey Budnevitch October 17, 2012 06:24AM

Re: connect() to unix:/var/run/php-fpm/php.sock failed

Reinis Rozitis October 18, 2012 06:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 177
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