Forum: NGINX Frequent lockups in Nginx/php-fpm after move from Apache/mod_php

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
198ae86fb0e5e620c26a17e5032dd87e?d=identicon&s=25 Arthur Pemberton (Guest)
on 2014-08-22 15:37
(Received via mailing list)
I moved hosting of roughly 150 Wordpress sites from Apache/mod_php to
Nginx/php-fpm after having tested and found measurably better
with Nginx. (hosted on Centos 6/7)

The first problem I ran into was that the server ran completely out of
memory (30GB of RAM) and came to a complete crash one night, I presume
all the bots came by -- never hard this issue before. I changed from
pm to ondemand, with 10 and 25 children per pool max, each website has
own pool. The new problem is that I start getting bad gateway errors
as regularly, as if there's no queuing of new requests. I get frequent
lockups where it would seem that somehow every child in every pool is in
use, and there is no queuing of requests from Nginx to php-fpm, and this
state is maintained until I restart php-fpm

There are no errors in besides infrequent "unable to read what child
Bad file descriptor" which is pretty vague.

This is currently on Centos 7 64bit with Nginx 1.6.0 (from nginx's
and php-fpm 5.5.15 (from the Remi repos)
This topic is locked and can not be replied to.