php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54015 PHP processes remaining active while they should not
Submitted: 2011-02-14 15:59 UTC Modified: 2013-02-18 00:34 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: linux at spilgames dot com Assigned: fat (profile)
Status: No Feedback Package: FPM related
PHP Version: 5.3.5 OS: CentOS 5.5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
31 + 40 = ?
Subscribe to this entry?

 
 [2011-02-14 15:59 UTC] linux at spilgames dot com
Description:
------------
PHP processes are still active even though they are freed up. As soon as a php-fpm 
reload is performed, the number of php processes drops. So seems that php is not 
updating the status of the processes.

extract of the conf file:

pm = dynamic

pm.max_children = 120
pm.start_servers = 20
pm.min_spare_servers = 10
pm.max_spare_servers = 20
pm.max_requests = 1000





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-10 03:07 UTC] nergalic at ya dot ru
Have the same problem on 5.3.6 and 5.3.5 on CentOS 5.5 (php works as FastCGI on 
nginx). It seems that in one moment php is unable to update process status, so 
new childs processes continue to fork, but other old childs are not dying.

pm = dynamic

pm.max_children = 400
pm.start_servers = 15
pm.min_spare_servers = 10
pm.max_spare_servers = 25
pm.max_requests = 2500
 [2011-07-02 13:58 UTC] fat@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: fat
 [2011-07-02 13:59 UTC] fat@php.net
-Status: Assigned +Status: Feedback
 [2011-07-02 13:59 UTC] fat@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

Can you try the last snapshot please ?

There's have been changes in the way FPM communicates with it children.

Moreover, if the problem continues, please set log_level to debug and send the 
trace. I can't do anything without debug traces.

Thx
++ jerome
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Fri Nov 16 03:01:26 2018 UTC