From 3219afd66688329941ae02a8aece6863d554c012 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 15 Nov 2013 16:56:21 +1100 Subject: [PATCH] fix bug, num request should be zeroed, better logging --- lib/middleware/unicorn_oobgc.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/middleware/unicorn_oobgc.rb b/lib/middleware/unicorn_oobgc.rb index 579091756..dd99c5993 100644 --- a/lib/middleware/unicorn_oobgc.rb +++ b/lib/middleware/unicorn_oobgc.rb @@ -49,8 +49,11 @@ module Middleware::UnicornOobgc end end else - puts "OobGC, GC live num adjusted, GC was not avoided: #{live_num}" + puts "OobGC, GC live num adjusted, GC was not avoided: #{live_num} reqs since GC: #{@num_requests} largest: #{@previous_deltas.max}" + + @num_requests = 0 @gc_live_num = live_num + end end