]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/limits.rb
Remove spurious quote.
[rails.git] / config / initializers / limits.rb
index f88d43956f86f649522657c1c246d6bf607fbbd6..9862036f7f2646a0a426d0f5470c15eb5f5e49e7 100644 (file)
@@ -1,6 +1,4 @@
-# Limit each rails process to a 512Mb resident set size
-Process.setrlimit Process::RLIMIT_AS, 640*1024*1024, Process::RLIM_INFINITY
-
-# Force a restart after every 10000 requests
-COUNT = 0
-MAX_COUNT = 10000
+# Set a hard limit of 1Gb on the virtual size of the process
+if Process.const_defined?(:RLIMIT_AS)
+  Process.setrlimit Process::RLIMIT_AS, 1024*1024*1024, Process::RLIM_INFINITY
+end