Due to this issue in jsonrpclib https://github.com/joshmarshall/jsonrpclib/issues/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
Due to this issue in jsonrpclib https://github.com/joshmarshall/jsonrpclib/issues/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: