You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% bundle exec fluent-debug -p 26224
Connected to druby://127.0.0.1:26224.
Usage:
Fluent::Engine.match('some.tag').output : get an output plugin instance
Fluent::Engine.sources[i] : get input plugin instances
Fluent::Plugin.load_plugin(type,name) : load plugin class (use this if you get DRb::DRbUnknown)
irb(main):001:0> Fluent::Engine.root_agent.outputs[0].buffer.queued_num
=> {}
After running echo '{"message":"hello"}' | bundle exec fluent-cat debug.echo for several times, fluentd flushes buffers and outputs debug.echo: {"message":"hello"}, but queued_num doesn't become empty.
% bundle exec fluent-debug -p 26224
Connected to druby://127.0.0.1:26224.
Usage:
Fluent::Engine.match('some.tag').output : get an output plugin instance
Fluent::Engine.sources[i] : get input plugin instances
Fluent::Plugin.load_plugin(type,name) : load plugin class (use this if you get DRb::DRbUnknown)
irb(main):001:0> Fluent::Engine.root_agent.outputs[0].buffer.queued_num
=> {#<struct Fluent::Plugin::Buffer::Metadata timekey=1522653270, tag="debug.echo", variables=nil>=>0, #<struct Fluent::Plugin::Buffer::Metadata timekey=1522653275, tag="debug.echo", variables=nil>=>0, #<struct Fluent::Plugin::Buffer::Metadata timekey=1522653290, tag="debug.echo", variables=nil>=>0}
It seems this causes memory-leak bug.
The text was updated successfully, but these errors were encountered:
eagletmt
added a commit
to eagletmt/fluentd
that referenced
this issue
Apr 2, 2018
eagletmt
changed the title
Fluent::Plugin::Buffer#queued_num grows infinitely when when chunks are time-sliced
Fluent::Plugin::Buffer#queued_num grows infinitely when chunks are time-sliced
Apr 2, 2018
Problem
When the
buffer
section hastime
as chunk key like https://docs.fluentd.org/v1.0/articles/buffer-section#time ,Fluent::Plugin::Buffer#queued_num
seems to grow infinitely.Step to reproduce
Start fluentd with the following configuration.
At this moment,
queued_num
is empty.After running
echo '{"message":"hello"}' | bundle exec fluent-cat debug.echo
for several times, fluentd flushes buffers and outputsdebug.echo: {"message":"hello"}
, butqueued_num
doesn't become empty.It seems this causes memory-leak bug.
The text was updated successfully, but these errors were encountered: