|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78742 each php sleep() creates new fpm-child-process
Submitted: 2019-10-23 15:10 UTC Modified: 2019-11-07 08:50 UTC
From: michael_bliem at gmx dot at Assigned:
Status: Not a bug Package: FPM related
PHP Version: 7.3.10 OS: debian buster VM
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.
Block user comment
Status: Assign to:
Bug Type:
From: michael_bliem at gmx dot at
New email:
PHP Version: OS:


 [2019-10-23 15:10 UTC] michael_bliem at gmx dot at
standard installation of:
-debian buster

each php-sleep seems to trigger creation of a new fpm-child-process.
this results in 503 errors when there are many requests if no more child-processes can be created


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-11-06 16:07 UTC]
-Status: Open +Status: Feedback
 [2019-11-06 16:07 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

this is expected - a sleeping child cannot handle other requests so php-fpm will create a new child to handle new requests. Why did you think this is a bug?
 [2019-11-07 07:29 UTC] michael_bliem at gmx dot at
-Status: Feedback +Status: Open
 [2019-11-07 07:29 UTC] michael_bliem at gmx dot at
it does not scale! 

e.g.: if there is a sleep(1h) in a php-file and pm.max_children+1 clients call this php-file, the last one receives a 503-response! additionally for 1h the page will be offline (503) as all child-processes are idle for one hour...
 [2019-11-07 08:50 UTC]
-Status: Open +Status: Not a bug
 [2019-11-07 08:50 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

you are correct but this is inherent to the design. You are welcome to build a sapi that does not have this problem.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Jun 30 03:05:45 2022 UTC