source: subversion/sites/rails_port/config/initializers/limits.rb @ 9524

Last change on this file since 9524 was 6394, checked in by tomhughes, 11 years ago

Don't try and limit the address space if the OS does not support it.

File size: 262 bytes
1# Limit each rails process to a 512Mb resident set size if possible
2if Process.const_defined?(:RLIMIT_AS)
3  Process.setrlimit Process::RLIMIT_AS, 640*1024*1024, Process::RLIM_INFINITY
6# Force a restart after every 10000 requests
7COUNT = 0
8MAX_COUNT = 10000
Note: See TracBrowser for help on using the repository browser.