php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69965 FPM spawns children until reaching pm.max_children
Submitted: 2015-06-29 23:26 UTC Modified: 2015-07-22 13:40 UTC
From: andrey at kostin dot email Assigned: mike (profile)
Status: Closed Package: FPM related
PHP Version: 7.0.0alpha1 OS: Ubuntu 14.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: andrey at kostin dot email
New email:
PHP Version: OS:

 

 [2015-06-29 23:26 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-06-30 08:33 UTC] laruence@php.net
I can not reproduce this, are you run there was no requests? no any logs in access log?
 [2015-06-30 08:43 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2015-06-30 08:46 UTC] andrey at kostin dot email
-Status: Feedback +Status: Open
 [2015-06-30 08:46 UTC] 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 10:53 UTC] andrey at kostin dot email
-PHP Version: 7.0.0alpha2 +PHP Version: 7.0.0alpha1
 [2015-06-30 10:53 UTC] 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-07-22 13:40 UTC] mike@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: mike
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Thu Jul 19 19:01:25 2018 UTC