summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-11-21 16:30:54 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-11-21 16:30:54 -0500
commit980df75c74ef76020979f2f17cbb3ec77df54aa5 (patch)
tree1790e3952c541d609b7c080fb337ef84574187f8 /etc
parentf82be9e4ecae9c33095ca6fb6532e7f78fe7e266 (diff)
downloadpfsense-980df75c74ef76020979f2f17cbb3ec77df54aa5.zip
pfsense-980df75c74ef76020979f2f17cbb3ec77df54aa5.tar.gz
Set max_procs for > 128 megabytes ram. Set min-procs to 0. Set the MAX_REQUESTS to 2 when memory under 128 megabytes
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc15
1 files changed, 10 insertions, 5 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 6b75fcf..2617804 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -736,15 +736,20 @@ EOC;
} else if ($avail > 0 and $avail < 128) {
$bin_environment = <<<EOC
- "bin-environment" => (
+ "bin-environment" => (
"PHP_FCGI_CHILDREN" => "$max_procs",
- "PHP_FCGI_MAX_REQUESTS" => "500",
+ "PHP_FCGI_MAX_REQUESTS" => "2",
),
EOC;
} else
- $bin_environment = "";
-
+ $bin_environment = <<<EOC
+ "bin-environment" => (
+ "PHP_FCGI_CHILDREN" => "$max_procs",
+ "PHP_FCGI_MAX_REQUESTS" => "500"
+ ),
+EOC;
+
if($fast_cgi_enable == true) {
$module = "\"mod_fastcgi\", \"mod_cgi\"";
$cgi_config = "";
@@ -755,7 +760,7 @@ fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.socket",
- "min-procs" => 1,
+ "min-procs" => 0,
"max-procs" => {$max_procs},
{$bin_environment}
"bin-path" => "/usr/local/bin/php"
OpenPOWER on IntegriCloud