From 1d9036bbb07615c1dfeb70bbb7c6ed629199519b Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 9 Jan 2013 11:53:11 +0800 Subject: set different values for Apache2::SizeLimit->set_max_unshared_size between production and non-production instances https://bugzilla.mozilla.org/show_bug.cgi?id=827808 --- mod_perl.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mod_perl.pl') diff --git a/mod_perl.pl b/mod_perl.pl index e3a50e4ea..8febe2f04 100644 --- a/mod_perl.pl +++ b/mod_perl.pl @@ -61,7 +61,11 @@ use Apache2::SizeLimit; # This means that every httpd child will die after processing # a CGI if it is taking up more than 1600MB of RAM all by itself, # not counting RAM it is sharing with the other httpd processes. -Apache2::SizeLimit->set_max_unshared_size(1_600_000); +if (Bugzilla->params->{'urlbase'} eq 'https://bugzilla.mozilla.org/') { + Apache2::SizeLimit->set_max_unshared_size(1_600_000); +} else { + Apache2::SizeLimit->set_max_unshared_size(100_000); +} my $cgi_path = Bugzilla::Constants::bz_locations()->{'cgi_path'}; -- cgit v1.2.3-24-g4f1b