openstreetmap-website/config/initializers/limits.rb
2008-01-06 12:17:58 +00:00

6 lines
206 B
Ruby

# 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