[omd-commits] OMD Git: omd: apache: reduced number of php5-cgi processes

git version control git at mathias-kettner.de
Fri Dec 30 14:13:59 CET 2011


Module:   omd
Branch:   master
Commit:   4a6fd53f123abf4dcb79b25cbb2f4a1214013786
URL:      http://omdistro.org/projects/omd/repository/revisions/4a6fd53f123abf4dcb79b25cbb2f4a1214013786

Author:   Sven Nierlein <sven at nierlein.de>
Date:     Fri Dec 30 14:07:18 2011 +0100
Commiter: Sven Nierlein <sven at nierlein.de>
Date:     Fri Dec 30 14:10:18 2011 +0100

apache: reduced number of php5-cgi processes

using PHP_FCGI_CHILDREN under mod_fcgid is pointless. Each fastcgi process gets
one process at a time, so there is no need to spawn multiple childs.

---

 .../skel/etc/apache/conf.d/02_fcgid.conf           |    3 ++-
 packages/apache-omd/skel/etc/apache/php-wrapper    |    1 -
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/apache-omd/skel/etc/apache/conf.d/02_fcgid.conf b/packages/apache-omd/skel/etc/apache/conf.d/02_fcgid.conf
index fdeda8e..98cc4eb 100644
--- a/packages/apache-omd/skel/etc/apache/conf.d/02_fcgid.conf
+++ b/packages/apache-omd/skel/etc/apache/conf.d/02_fcgid.conf
@@ -2,7 +2,8 @@
   LoadModule fcgid_module ###APACHE_FCGID_MODULE###
 </IfModule>
 
-MaxRequestsPerProcess 100
+FcgidMaxProcesses 10
+MaxRequestsPerProcess 500
 IPCConnectTimeout 20
 
 # mod_fcgid default is 128 kb which is too small for needed file
diff --git a/packages/apache-omd/skel/etc/apache/php-wrapper b/packages/apache-omd/skel/etc/apache/php-wrapper
index 02dd5c1..ebf7946 100644
--- a/packages/apache-omd/skel/etc/apache/php-wrapper
+++ b/packages/apache-omd/skel/etc/apache/php-wrapper
@@ -3,7 +3,6 @@
 . "###ROOT###/.profile"
 
 export PHP_FCGI_MAX_REQUESTS=1000
-export PHP_FCGI_CHILDREN=8
 
 # Replace with the path to your FastCGI-enabled PHP executable
 exec ###PHP_FCGI_BIN### \



More information about the omd-commits mailing list