You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to this issue in jsonrpclib joshmarshall/jsonrpclib#47 if the jsonrpclib history is not cleared memory will grow unbounded. The fix is to add history.clear() after every call. Sample diff here:
diff --git a/eos/collectors/eos.py b/eos/collectors/eos.py
index 86da378..c3bd436 100755
--- a/eos/collectors/eos.py
+++ b/eos/collectors/eos.py
@@ -33,6 +33,7 @@ class IntfCounterCollector(object):
result = self.server_.runCmds(1, ["show interfaces counters",
"show interfaces counters errors",
"show interfaces counters bins"])
+ jsonrpclib.history.clear()
(counters, error_counters, bin_counters) = result
# Print general interface counters
The text was updated successfully, but these errors were encountered:
dasturias
pushed a commit
to dasturias/tcollector
that referenced
this issue
May 18, 2018
Due to this issue in jsonrpclib joshmarshall/jsonrpclib#47 if the jsonrpclib history is not cleared memory will grow unbounded. The fix is to add history.clear() after every call. Sample diff here:
The text was updated successfully, but these errors were encountered: