fluent / fluent-bit

Fast and Lightweight Logs and Metrics processor for Linux, BSD, OSX and Windows
https://fluentbit.io
Apache License 2.0
5.53k stars 1.51k forks source link

large memory usage increment from about 300M to 10G since v2.1.9 (more than 10 times of v2.1.8) #9012

Open hsingli20 opened 1 week ago

hsingli20 commented 1 week ago

Bug Report

Describe the bug Large memory usage increment from about 300M to 10G since v2.1.9 (more than 10 times of v2.1.8) The memory of container will keep increasing until close to 10G. Memory increases in a sawtooth pattern and then releases. Under the same traffic test and the same configurations for fluentbit, the version v2.1.9 seems introducing such new memory usage pattern, this will cause more memory usage reserved for fluentbit to avoid OOM kill issue.

To Reproduce

Screenshots

Your Environment


* Environment name and version (e.g. Kubernetes? What version?): kubernetes
![MicrosoftTeams-image (1)](https://github.com/fluent/fluent-bit/assets/59753717/ae22f87a-4c9c-4d61-a797-29ea03cf05c5)
edsiper commented 1 week ago

please provide the full configuration including filters and outputs.