[collectd] possible memory leak?

Florian Forster octo at verplant.org
Wed Aug 18 09:13:39 CEST 2010

Hi Kimo,

On Mon, Aug 16, 2010 at 10:00:38AM -0700, Kimo Rosenbaum wrote:
> Over the course of a couple days active memory slowly increases and
> eventually swap starts getting used. Restarting the collectd instance
> relieves memory pressure and everything is fine for a few more days.

I've observed a similar memory growth on very busy boxes but so far was
unable to track down an error in collectd.

When I noticed that some network packets were dropped, I raised the
receive buffer size (and limit) using sysctl. Strangely enough, this
stopped not only packets being dropped, but also the memory growth. I
still have to find an explanation as to why.

The applicable keys are:

At least under Debian you can set them persistently (so the setting will
survive a reboot) by adding the keys to the
configuration file.

It'd be awesome if you could give it a shot and give me some feedback if
you observer any changes. Also, your exact kernel version would be

Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20100818/a6d20832/attachment.pgp 

More information about the collectd mailing list