aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-08-06 09:55:36 +0100
committerGareth Rees <gareth@mysociety.org>2014-08-06 09:55:36 +0100
commitd048891953da9580c6b22b56747d7db888850bed (patch)
tree4ac109e9a40642466fe1dd1cec3f2d97265a4f50
parent5f3f2f4779f88e85431db7a9e4be33c3ff3cf0b8 (diff)
Decrease default PassengerMaxPoolSize
Passenger's default MaxPoolSize is 6. At the time of writing normal* instances of Alaveteli seem to take 150-200MB per process, so we've set this conservatively at 3. * ‘Normal’ is basically any vHost other than WDTK, which is running at around 500MB per process
-rw-r--r--config/httpd-vhost.conf-example6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/httpd-vhost.conf-example b/config/httpd-vhost.conf-example
index 2cb6dced0..2bca09ce9 100644
--- a/config/httpd-vhost.conf-example
+++ b/config/httpd-vhost.conf-example
@@ -29,7 +29,11 @@
# Set this to something like 100 if you have memory leak issues
PassengerMaxRequests 2000
PassengerResolveSymlinksInDocumentRoot on
- PassengerMaxPoolSize 6
+ # Passenger's default MaxPoolSize is 6. At the time of writing
+ # normal instances of Alaveteli seem to take 150-200MB per
+ # process, so we've set this conservatively at 3. Read the guides
+ # above to tune this for your system
+ PassengerMaxPoolSize 3
RailsEnv production
RackEnv production