-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fluent-bit memory not released when setting up the input log file path with wild card #9628
Comments
Hi @lecaros , Have you had an opportunity to review this issue? If so, I would appreciate any updates or insights you could provide. Thank you!" |
Hi @lecaros ,
|
hi @sasikiranvaddi, this should be the next on my list (unless something unexpected pushes it back). Thanks for your patience! |
Hi @sasikiranvaddi, In another run with
Are you able to reproduce this with vanilla Fluent Bit (running the binary outside of kubernetes). I used version: |
Hi @lecaros, |
Bug Report
fluent-bit process memory not being released even if we deleted the complete list of log file path.
Describe the bug
when deploying fluent-bit sidecar with loggen microservice with the input log file path being set as wildcard /test*.log.
we observed while creating a thousands of log files from test1.log to tet1000.log, fluent-bit process memory increases for instance from 13660 KB to 23792 KB. After sometime we manually deleted all the log files including the default one of test0.log. we found the memory of the fluent-bit process is not decreasing.
When we checked to identify the file descriptor of the deleted file is still open using the below command
lsof | grep deleted
--> output of the command as --1 /tmp/loggen/loggen.bin test0.log (deleted)
that means above output will list all processes with open file descriptor that are linked to deleted files.
Overall this means, deleted file still being open and hence fluent-bit process memory not being released.
we also tried ways or configuration from fluent-bit to release the memory when files are being deleted.
configure Ignore_Older – prevent fluent-bit from tailing old or deleted file
Exit_On_Eof fluent-bit to stop reading a file after deletion
Even after following the above recommendation , there is release in memory of fluent-bit process.
Expected behavior
Ideally there should be a way or parameter from fluent-bit configuration to release the memory.
Your Environment
please refer the below config map of fluent-bit sidecar
[fluent bit] version=3.0.5
The text was updated successfully, but these errors were encountered: