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

Last change on this file since 14762 was 14762, checked in by tomhughes, 10 years ago

Increase the hard memory limit and set a lower soft limit that does a
clean restart between requests.

File size: 256 bytes
1# Set a hard limit of 1Gb on the virtual size of the process
2if Process.const_defined?(:RLIMIT_AS)
3  Process.setrlimit Process::RLIMIT_AS, 1024*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.