-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
gracefulReloads are leaking memory #3342
Comments
I seems that it can be reproduced with more simple .conf. (fluentd 1.12.3) (without jemalloc)
Then execute graceful reload some times with The value of RES increases gradually, and tend to increase excessively with spawned Here is the observed result without/with
|
In addition, if
|
Maybe the following patch resolves it. diff --git a/lib/fluent/plugin/in_systemd.rb b/lib/fluent/plugin/in_systemd.rb
index c408b29..b872f99 100644
--- a/lib/fluent/plugin/in_systemd.rb
+++ b/lib/fluent/plugin/in_systemd.rb
@@ -63,6 +63,10 @@ module Fluent
def shutdown
@running = false
+ @journal.close if @journal
+ @journal = nil
+ @pos_storage = nil
+ @mutator = nil
super
end |
I've sent PR for it fluent-plugins-nursery/fluent-plugin-systemd#91 |
FYI: fluent-plugins-nursery/fluent-plugin-systemd#91 was merged. |
Describe the bug
Issued 10 gracefulReloads in 15 minutes. Observed that fluentd pod memory almost trippled after 10 gracefulReloads.
To Reproduce
Issue multiple gracefulReloads and observe fluentd memory utilization.
Expected behavior
gracefulReloads should not be leaking memory.
Your Environment
fluentd 1.12.2
Ubuntu 20.04.1 LTS
5.4.0-42-generic
Your Configuration
Your Error Log
fluentd.log
Additional context
The text was updated successfully, but these errors were encountered: