From 3146380365b0048a2e27085433f7d3fba11120c2 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Fri, 27 Jan 2012 11:54:58 -0800 Subject: [PATCH] aggressively kill unicorn workers with UnicornKiller. [ci skip] --- config.ru | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.ru b/config.ru index 73f9ca8ba..a49db71c6 100644 --- a/config.ru +++ b/config.ru @@ -8,6 +8,10 @@ require ::File.expand_path('../config/environment', __FILE__) require ::File.expand_path('../lib/unicorn_killer', __FILE__) require ::File.expand_path('../lib/rack/chrome_frame', __FILE__) +# Kill unicorn workers really agressively (at 300mb) +if defined?(Unicorn) + use UnicornKiller::Oom, 300 * 1024 +end use Rack::ChromeFrame, :minimum => 8 run Diaspora::Application