Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
snmp plugin memory leak #610
I have a problem where the collectd snmp plugin seems to leak about 50MB of memory per hour on our setup.
valgrind output: https://gist.github.com/StianOvrevage/9f0a48519a1f7f49c685
There is a bugreport in net-snmp which suggest that it is possible to use the snmp library wrong and get memory leaks that way: http://sourceforge.net/p/net-snmp/bugs/1095/ related to the snmp_pdu_create function.
I am seeing similar behavior in the SNMP plugin:
The above was with ~50 hosts over 30 minutes.
added a commit
Aug 8, 2014
referenced this issue
Aug 8, 2014
@StianOvrevage, @slillibri, would it be possible for you to test #698 ? The patch is against collectd-4.10 because the issue dates all that way back in the past. But it's fairly simple and that part of the code didn't change since, so you can easily cherry-pick or copy-paste the patch on whatever version you're using.
I'd be grateful to have others confirm this doesn't have any side effects because my use of this plugin is really really basic... Thanks !