X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/065d3dc16b5d70f2e3b40640e6c56af4e733b8f4..138a9d97644d8cba566cf840edd524fc9947ac1a:/config/initializers/limits.rb?ds=sidebyside diff --git a/config/initializers/limits.rb b/config/initializers/limits.rb index 485d95e9c..9862036f7 100644 --- a/config/initializers/limits.rb +++ b/config/initializers/limits.rb @@ -1,8 +1,4 @@ -# 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 -COUNT = 0 -MAX_COUNT = 10000