more diags
This commit is contained in:
parent
a92ada0493
commit
c1d7bbdc79
|
@ -46,7 +46,7 @@ module Middleware::UnicornOobgc
|
||||||
if @gc_live_num && @num_requests > MIN_REQUESTS_PER_OOBGC
|
if @gc_live_num && @num_requests > MIN_REQUESTS_PER_OOBGC
|
||||||
largest = @previous_deltas.max
|
largest = @previous_deltas.max
|
||||||
if (largest * 3) + new_live_num > @gc_live_num
|
if (largest * 3) + new_live_num > @gc_live_num
|
||||||
puts "OobGC invoked"
|
puts "OobGC invoked req count: #{@num_requests} largest delta: #{largest}"
|
||||||
GC.start
|
GC.start
|
||||||
@num_requests = 0
|
@num_requests = 0
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue