Hello, Sorry, I should have been given out more information when I described my test. I am actually using flow-control in the test I described before. I have set the log_fifo_size to 250 logs so the syslog-ng client daemon stops buffering logs after 250 have been received. flags(flow-control) is also set in the configuration log definition. I have checked that flow-control is working correctly because after I bring the syslog-ng server back online, all the logs sent for 4 hours get delivered to the server. So no logs are been dropped after 250 logs have been buffered. For that reason, I do not believe this is the reason why the syslog-ng client daemon virtual memory size continuously increase when the syslog-ng server is not online. Thanks. -----Original Message----- From: Jakub Jankowski [mailto:shasta@toxcorp.com] Sent: Wednesday, March 19, 2014 4:24 PM To: Syslog-ng users' and developers' mailing list Subject: Re: [syslog-ng] syslog-ng Potential Memory Leak On 19.03.2014 23:13, Tamayo, Andres wrote:
Hello,
I have been testing syslog-ng under different scenarios and I noticed that when syslog-ng is trying to connect to an external syslog-ng server, it exhibits what could be called a memory leak.
Let me explain how I am setting up my test. I have a syslog-ng client running collecting logs from a file (source) and sending them to an external syslog-ng server over TCP (destination). If the syslog-ng server is online, the syslog-ng client daemon process virtual memory does not increase. Now, when I kill the syslog-ng server, the syslog-ng client daemon process starts to request more and more virtual memory. [...]
What you're seeing is not a memory leak. Syslog-ng memory usage grows, because it maintains an output buffer, in which it stores messages if the destination becomes unavailable. Size of this buffer is controlled by log_fifo_size() config option. Read more about it in the docs: https://urldefense.proofpoint.com/v1/url?u=http://www.balabit.com/sites/defa... HTH -- Jakub Jankowski|shasta@toxcorp.com|https://urldefense.proofpoint.com/v1/url?u=http://toxcorp.com/&k=OWT%2FB14AE... GPG: FCBF F03D 9ADB B768 8B92 BB52 0341 9037 A875 942D