[collectd] Possible memory leak in python plugin?

2012-01-15 Thread Michael Spiegle
I wrote a simple python reader plugin to collect a few stats from my local mongo server.  I noticed that over time, my process would continually grow until it consumed 100MB of memory. If I simply comment out my 'v.dispatch()' function, the memory leak goes away. Is this an issue with collectd,

Re: [collectd] Possible memory leak in python plugin?

2012-01-15 Thread Sven Trenkel
What version of collectd are you using? And until we find the cause of this behavior you might try to pull the constant parts of the submitted value out of the for loop. So, v = collectd.Values() v.plugin = 'mongostats' v.type = 'counter' could be put before the loop as it's just creating and

Re: [collectd] Possible memory leak in python plugin?

2012-01-15 Thread Sven Trenkel
Never mind, I think I found the bug. I'll test it tomorrow. If you compiled collectd yourself I'll send you a patch if you tell me the exact version number you're using. ___ collectd mailing list collectd@verplant.org