Bug #69965 [Opn->Csd]: FPM spawns children until reaching pm.max_children

From: Date: Wed, 22 Jul 2015 13:40:55 +0000
Subject: Bug #69965 [Opn->Csd]: FPM spawns children until reaching pm.max_children
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194629@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69965&edit=1 ID: 69965 Updated by: mike@php.net Reported by: andrey at kostin dot email Summary: FPM spawns children until reaching pm.max_children -Status: Open +Status: Closed Type: Bug Package: FPM related Operating System: Ubuntu 14.04 PHP Version: 7.0.0alpha1 -Assigned To: +Assigned To: mike Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2015-06-30 10:53:43] andrey at kostin dot email Error in description: alpha1 is affected, alpha2 is not. I have reproduced this bug using recently created VPS, can provide you with root access for investigation. ------------------------------------------------------------------------ [2015-06-30 08:46:07] andrey at kostin dot email Absolutely sure that there are no requests. No cron jobs, browser is not running, nginx is not running, other web-servers are not installed. The only log available is php-fpm log: [30-Jun-2015 11:41:32] NOTICE: fpm is running, pid 29338 [30-Jun-2015 11:41:32] NOTICE: ready to handle connections [30-Jun-2015 11:41:36] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 8 total children [30-Jun-2015 11:41:37] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 0 idle, and 10 total children ... [30-Jun-2015 11:42:03] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 62 total children [30-Jun-2015 11:42:04] WARNING: [pool www] server reached pm.max_children setting (64), consider raising it ------------------------------------------------------------------------ [2015-06-30 08:33:09] laruence@php.net I can not reproduce this, are you run there was no requests? no any logs in access log? ------------------------------------------------------------------------ [2015-06-29 23:26:56] andrey at kostin dot email Description: ------------ FPM configured with the following lines: [www] user = www-data group = www-data listen = 127.0.0.1:9000 pm = dynamic pm.max_children = 64 pm.start_servers = 3 pm.min_spare_servers = 2 pm.max_spare_servers = 4 PHP-FPM start with 3 child processes and spawns additional processes every second until their total count become equal to 64. No requests are being send to server. Expected result: ---------------- Do not spawn additional processes without request to server. Actual result: -------------- 64 processes created in less than a minute after server start ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69965&edit=1

« previous php.bugs (#194629) next »