diff options
Diffstat (limited to 'config.ru')
-rw-r--r-- | config.ru | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config.ru b/config.ru index dfd2d862237..1edcd391e45 100644 --- a/config.ru +++ b/config.ru @@ -1,5 +1,11 @@ # This file is used by Rack-based servers to start the application. +# Unicorn self-process killer +require 'unicorn/worker_killer' + +# # Max memory size (RSS) per worker +use Unicorn::WorkerKiller::Oom, (200 * (1 << 20)), (250 * (1 << 20)) + require ::File.expand_path('../config/environment', __FILE__) map ENV['RAILS_RELATIVE_URL_ROOT'] || "/" do |