Bug #69709 [Opn->Csd]: FPM "ondemand" broke process

From: Date: Wed, 27 May 2015 20:18:34 +0000
Subject: Bug #69709 [Opn->Csd]: FPM "ondemand" broke process
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192934@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69709&edit=1 ID: 69709 User updated by: allan at allanmoraes dot com dot br Reported by: allan at allanmoraes dot com dot br Summary: FPM "ondemand" broke process -Status: Open +Status: Closed Type: Bug Package: FPM related Operating System: CentOS 7.1 3.10.0-229.1.2.el7.x8 PHP Version: Irrelevant Block user comment: N Private report: N New Comment: -- Previous Comments: ------------------------------------------------------------------------ [2015-05-26 18:36:26] 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: -------------- -- ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69709&edit=1

« previous php.bugs (#192934) next »