mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Set max_procs for > 128 megabytes ram. Set min-procs to 0. Set the MAX_REQUESTS to 2 when memory under 128 megabytes
This commit is contained in:
parent
f82be9e4ec
commit
980df75c74
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user