mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
fix bug, num request should be zeroed, better logging
This commit is contained in:
parent
2c1104237c
commit
3219afd666
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue