Yikes, that'd be good to get fixed. I personally run it with thousands
too, but haven't seen a leak like that.
Do you have valgrind installed (or could you install it) on your system?
Once that's done, we'd run it like this:
valgrind --leak-check=full --show-reachable=yes rrdbotd -d 1
rrdbot will run in the foreground and slower than normal. Once you see
memory leaking could you kill rrdbotd (with Ctrl-C) and send me the output?
Thanks and looking forward to getting this fixed,
Stef
Yes, it certainly has. Attached is a patch, which should fix the
problem. I've identified three leaks. The one related to snmp_pdu_clear
(in the patch) was the main one leaking in your case.
Just to cross reference things ... you were having rrdbotd query octet
strings (ie: values that are not integers or counters) is that correct?
It seems that way, and that normally shouldn't be a problem, just wanted
to see if I understood the problem correctly.
Please let me know if this fixes your problem. Thanks!
Cheers,
Stef
How's it looking?
Cheers,
Stef
Yes. All of the still reachable blocks are ones that are loaded for the
lifetime of the application. So they're not memory leaks per se.
That said, I thought that they are freed when rrdbotd stops. Strange.
Anyway, thanks for your help in finding the leak. Much appreciated! I'll
include the patches in the next release.
Cheers,
Stef