From 8c54443dd24eb15576dd5c2ebfbc6ce174276b3c Mon Sep 17 00:00:00 2001 From: Dylan Hardison Date: Wed, 27 Jan 2016 17:47:17 -0500 Subject: Bug 731589 - Move mod_perl's max_unshared size from mod_perl.pl to localconfig r=dkl,a=dylan --- Bugzilla/Install/Localconfig.pm | 4 ++++ mod_perl.pl | 2 +- template/en/default/setup/strings.txt.pl | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Bugzilla/Install/Localconfig.pm b/Bugzilla/Install/Localconfig.pm index 9d385fc14..fae97c189 100644 --- a/Bugzilla/Install/Localconfig.pm +++ b/Bugzilla/Install/Localconfig.pm @@ -132,6 +132,10 @@ use constant LOCALCONFIG_VARS => ( # is larger than anybody would ever be able to brute-force. default => sub { generate_random_password(64) }, }, + { + name => 'apache_size_limit', + default => 250000, + }, ); diff --git a/mod_perl.pl b/mod_perl.pl index f0de2e553..032266fa2 100644 --- a/mod_perl.pl +++ b/mod_perl.pl @@ -55,7 +55,7 @@ use Apache2::SizeLimit; # This means that every httpd child will die after processing # a CGI if it is taking up more than 45MB of RAM all by itself, # not counting RAM it is sharing with the other httpd processes. -Apache2::SizeLimit->set_max_unshared_size(45_000); +Apache2::SizeLimit->set_max_unshared_size(Bugzilla->localconfig->{apache_size_limit}); my $cgi_path = Bugzilla::Constants::bz_locations()->{'cgi_path'}; diff --git a/template/en/default/setup/strings.txt.pl b/template/en/default/setup/strings.txt.pl index 4409d9ff3..61476d69c 100644 --- a/template/en/default/setup/strings.txt.pl +++ b/template/en/default/setup/strings.txt.pl @@ -305,6 +305,10 @@ and you cannot set this up any other way. YOU HAVE BEEN WARNED! If you set this to anything other than "", you will need to run checksetup.pl as ##root## or as a user who is a member of the specified group. END + localconfig_apache_size_limit => < <