]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/limits.rb
Increase the hard memory limit and set a lower soft limit that does a
[rails.git] / config / initializers / limits.rb
index 485d95e9c98c03d57547d815c35389ac00215df1..1ce493dfbeaa6dcebd0b91522e2c60ab81c30236 100644 (file)
@@ -1,6 +1,6 @@
-# Limit each rails process to a 512Mb resident set size if possible
+# Set a hard limit of 1Gb on the virtual size of the process
 if Process.const_defined?(:RLIMIT_AS)
-  Process.setrlimit Process::RLIMIT_AS, 640*1024*1024, Process::RLIM_INFINITY
+  Process.setrlimit Process::RLIMIT_AS, 1024*1024*1024, Process::RLIM_INFINITY
 end
 
 # Force a restart after every 10000 requests