Closed CH-anhngo closed 5 years ago
Hi @CH-anhngo,
Please not that #2380 was not a bug, rather a question about syslog-ng's memory usage. It turned out to be simply a destination was using log-fifo - a memory buffer - and there were messages in the queue.
In your case you are using reliable disk-buffer, which stores every incoming message on the disk, thus memory buffering is not done in memory.
Can you please give us some output of the amount of memory used when you see syslog-ng is leaking memory?
Closing due to inactivity.
syslog-ng
Looks like we got the same issue with #2380. Even we tweak the log_fifo_size to really low compare with our memory in the box the memory usage keeps climbing until it got OOM-killer and thing start from 0 to OOM-killer again and again.
(Please, remove the unnecessary notes, including this one.)
Version of syslog-ng
v 3.17.2
Platform
Coreos (Name and version of OS)
Debug bundle
Create a debug bundle on your system with the syslog-ng-debun script which is included in the syslog-ng package.
Overwiew of the CLI options of syslog-ng-debun: -r: run actual information gathering -d: run syslog-ng in debug mode -p: perform packet capture -s: do strace -t: timeout period for running debug/pcap/strace -w: wait period before starting debug mode -l: light information gathering (respects privacy) -R: alternate installation directory for syslog-ng
Issue
Failure
(Backtrace, error messages or detailed description of failure comes here.) (To create debug bundles, use
syslog-ng-debun
. Details of its usage can be found on the documentation page)Steps to reproduce
start syslog-ng
start fluentd to read from syslog-ng buffer to upload to s3
Configuration
(or gist URL)
Input and output logs (if possible)