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

Sergey Budnevitch sb at
Tue Oct 16 09:34:29 UTC 2012

On 16  Oct2012, at 12:58 , justin <nginx-forum at> 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.

More information about the nginx mailing list