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

Sergey Budnevitch sb at
Wed Oct 17 10:22:40 UTC 2012

On 16  Oct2012, at 20:56 , justin <nginx-forum at> wrote:

> Sergey,
> Just tried with 50 PHP-FPM workers, and performance was even worse:

Well, if your application is not CPU, i/o etc bound, you have to
find what your php application wait for. In case of php+mysql
it is advisable to enable slow log in php-fpm and mysql.
Sorry but further php debugging you should do yourself - 
it is out of scope of the mailing list.

> Same problem logged in /var/log/nginx/error.log:
> connect() to unix:/var/run/php-fpm/php.sock failed (11: Resource temporarily
> unavailable) while connecting to upstream

When 50 php workers serve equal number of requests and another 128 
(from listen.backlog) requests wait in backlog, 179th request
will result in "(11: Resource temporarily unavailable) while connecting to upstream". 

More information about the nginx mailing list