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