[syslog-ng] Logical memory leak with statistics

Gergely Nagy algernon at balabit.hu
Thu Sep 6 12:40:33 CEST 2012


Evan Rempel <erempel at uvic.ca> writes:

> It just came to my attention that the syslog-ng-ctl shows statistics
> for ALL sources/destination that have ever existed.

[...]

> Over time this will consume memory and eventually require a restart.
>
> Is it possible to create a --clear flag on the stats command that will dump
> the current stats and clear them? This would also drop the memory required
> to track source/destinations that are no longer open.

Something along these lines was already proposed in BugZilla#186[1], and
the it is something we want to do, indeed. It should be possible to
reset either all or only selected stats. Similarly, we could make it
possible to completely remove said stat counter, not just reset it.

This is something I'd like to see in 3.4, isn't too hard to do, either
as far as I see, so there's hope!

 [1]: https://bugzilla.balabit.com/show_bug.cgi?id=186

-- 
|8]



More information about the syslog-ng mailing list