Don't try and limit the address space if the OS does not support it.
This commit is contained in:
parent
1e54573bae
commit
065d3dc16b
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
# Limit each rails process to a 512Mb resident set size
|
||||
Process.setrlimit Process::RLIMIT_AS, 640*1024*1024, Process::RLIM_INFINITY
|
||||
# Limit each rails process to a 512Mb resident set size if possible
|
||||
if Process.const_defined?(:RLIMIT_AS)
|
||||
Process.setrlimit Process::RLIMIT_AS, 640*1024*1024, Process::RLIM_INFINITY
|
||||
end
|
||||
|
||||
# Force a restart after every 10000 requests
|
||||
COUNT = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue