Bug #69965 [Fbk->Opn]: FPM spawns children until reaching pm.max_children
| From: | andrey at kostin dot email | Date: | Tue, 30 Jun 2015 08:46:08 +0000 |
| Subject: | Bug #69965 [Fbk->Opn]: FPM spawns children until reaching pm.max_children | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194009@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
User updated by: andrey at kostin dot email
Reported by: andrey at kostin dot email
Summary: FPM spawns children until reaching pm.max_children
-Status: Feedback
+Status: Open
Type: Bug
Package: FPM related
Operating System: Ubuntu 14.04
PHP Version: 7.0.0alpha2
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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