php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69709 FPM "ondemand" broke process
Submitted: 2015-05-26 18:36 UTC Modified: 2015-05-27 20:18 UTC
From: allan at allanmoraes dot com dot br Assigned:
Status: Closed Package: FPM related
PHP Version: Irrelevant OS: CentOS 7.1 3.10.0-229.1.2.el7.x8
Private report: No CVE-ID: None
 [2015-05-26 18:36 UTC] allan at allanmoraes dot com dot br
Description:
------------
Hi
In my servers there are 3 php version: 5.4.40, 5.5.24 and 5.6.8. All versions use FPM. My Apache version is 2.4.12 with mpm event. The problem is: 
A test with the standard wordpress, if I have many hits does not consume the maximum processing machine or memory but is giving problems or slowdowns. And one hour, it's 503 error but does not return, I need to restart the service fpm. Even without many hits keep dropping and returning the site and stabilizes only restarting the service. This in any version of PHP. This problem did not exist in the older version we were using.
##################################
pool configuration

[POOL_NAME]
listen = 127.0.0.1:9014
listen.allowed_clients = 127.0.0.1
user = USER
group = GROUP
pm = ondemand
pm.max_children = 15
pm.start_servers = 1
pm.min_spare_servers = 2
pm.max_spare_servers = 3
pm.max_requests = 2000
request_terminate_timeout = 10m
pm.process_idle_timeout = 10m
##################################
Apache configuration

KeepAlive On
MaxKeepAliveRequests    500
KeepAliveTimeout        15
Timeout                 300
GracefulShutdownTimeout 2

<IfModule event.c>
StartServers 1
ServerLimit 5
MinSpareThreads 25
MaxSpareThreads 100
ThreadsPerChild 200
ThreadLimit 200
MaxRequestWorkers 1000
MaxConnectionsPerChild 10000000
</IfModule>
##################################
VirtualHost configuration

<Proxy fcgi://127.0.0.1:9014>
ProxySet timeout=300
ProxySet disablereuse=off
</Proxy>
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9014"
</FilesMatch>

FPM LOG
DEBUG: pid 167075, fpm_children_make(), line 421: [pool POOL_NAME] child 167108 started
DEBUG: pid 167075, fpm_pctl_on_socket_accept(), line 536: [pool POOL_NAME] got accept without idle child available .... I forked
DEBUG: pid 167075, fpm_event_loop(), line 419: event module triggered 1 events

Test script:
---------------
--

Expected result:
----------------
--

Actual result:
--------------
--

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-27 20:18 UTC] allan at allanmoraes dot com dot br
-Status: Open +Status: Closed
 [2015-05-27 20:18 UTC] allan at allanmoraes dot com dot br
--
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 15:01:29 2024 UTC