]> git.openstreetmap.org Git - rails.git/blob - config/initializers/limits.rb
Prepare for Rails 2.1+, as we will no longer be able to use a symbol in the set_fixtu...
[rails.git] / config / initializers / limits.rb
1 # Limit each rails process to a 512Mb resident set size if possible
2 if Process.const_defined?(:RLIMIT_AS)
3   Process.setrlimit Process::RLIMIT_AS, 640*1024*1024, Process::RLIM_INFINITY
4 end
5
6 # Force a restart after every 10000 requests
7 COUNT = 0
8 MAX_COUNT = 10000