diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-11-21 16:30:54 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-11-21 16:30:54 -0500 |
commit | 980df75c74ef76020979f2f17cbb3ec77df54aa5 (patch) | |
tree | 1790e3952c541d609b7c080fb337ef84574187f8 /etc/inc | |
parent | f82be9e4ecae9c33095ca6fb6532e7f78fe7e266 (diff) | |
download | pfsense-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/inc')
-rw-r--r-- | etc/inc/system.inc | 15 |
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" |