fix bug, num request should be zeroed, better logging

This commit is contained in:
Sam 2013-11-15 16:56:21 +11:00
parent 2c1104237c
commit 3219afd666

View file

@ -49,8 +49,11 @@ module Middleware::UnicornOobgc
end end
end end
else 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 @gc_live_num = live_num
end end
end end