On Sat, 17 Jan 2009, Michael Biebl wrote: > Hi, > > I'm running rsyslog 3.20.2 > > I noticed the following: > # /etc/init.d/rsyslog restart > VSZ RSS (as reported by ps) > 27100 1184 > # logger foo > 27100 1196 > # logger foo (1000x) > 27100 1200 > # logger foo (1000x) > 27100 1204 > # logger foo (1000x) > 27100 1208 > > and so on. > > > This made me wonder, if rsyslog is leaking memory somewhere.
I have run rsyslog through stress tests where I have sent it 1B log messages and do not think that there is a memory leak. what I think that you are seeing is that the default rsyslog memory queue only uses as much ram as it needs to hold the data (even though it's described as a array it seems to grow dynamicly, I'm not sure about it shrinking) when you log a bunch of messages via logger you push data into the array faster then it gets extracted, so it takes more memory (up until you hit the max size of the array, which I think is 1000 entries) > I also noticed, that for each loaded module, rsyslog resevers exactly > 8 Mb of anoymous memory (pmap -d `pgrep rsyslog`) > With a couple of loaded modules you easily get over 50Mb VSZ. I haven't tried doing stuff with different modules, so I don't know about this. David Lang _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com

