From 251ebb0d65ac938179597f0d54b57ffae65ac95b Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 27 Mar 2015 14:51:22 +1100 Subject: [PATCH] disable memory check till we confirm all is good --- config/unicorn.conf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/unicorn.conf.rb b/config/unicorn.conf.rb index cd292f3c0ed..5ed9d2c88e9 100644 --- a/config/unicorn.conf.rb +++ b/config/unicorn.conf.rb @@ -99,7 +99,7 @@ before_fork do |server, worker| if @sidekiq_next_heartbeat_check < Time.new.to_i last_heartbeat = Jobs::RunHeartbeat.last_heartbeat - if out_of_memory? + if false && out_of_memory? Rails.logger.warn("Sidekiq is consuming too much memory (using: %0.2fM), restarting" % (max_rss.to_f / 1.megabyte)) Demon::Sidekiq.restart end