Skip to content
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

problem with in_tail of fluentd 0.10.12 #40

Closed
k24d opened this issue Feb 20, 2012 · 4 comments
Closed

problem with in_tail of fluentd 0.10.12 #40

k24d opened this issue Feb 20, 2012 · 4 comments

Comments

@k24d
Copy link

k24d commented Feb 20, 2012

I noticed that the "in_tail" plugin shipped with fluentd-0.10.12 consumes 100% CPU time on my box.

OS: Ubuntu 10.04 / RHEL 6
Ruby: 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
fluentd: "gem install --version 0.10.12 fluentd"

It seems the 'io' object passed to IOHandler is always readable, and 'on_readable' is called repeatedly.

Sorry that I have no idea how to fix it.

@k24d
Copy link
Author

k24d commented Feb 20, 2012

Here is my fluent.conf:

<source>
  type tail
  path /var/log/apache2/ssl_access.log
  format apache
  tag apache2.ssl_access
</source>

<match **>
  type stdout
</match>

Run fluentd like this:

# /opt/ruby/bin/fluentd 

I got this:

# dstat
----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw 
  1   0  99   0   0   0| 289B 1364B|   0     0 |   2B   11B|  69   145 
 74  26   0   0   0   0|   0     0 |  66B  850B|   0     0 | 253   421 
 82  18   0   0   0   0|   0     0 |  66B  354B|   0     0 | 267   464 
 71  29   0   0   0   0|   0     0 |  66B  354B|   0     0 | 260   438 

@frsyuki
Copy link
Member

frsyuki commented Feb 20, 2012

Thank you for your detailed report. I'll check the problem.

@frsyuki
Copy link
Member

frsyuki commented Feb 20, 2012

The problem is reproduced on my environment.
Unfortunately, it's hard to resolve and may take time to fix. For now, please downgrade the version of fluentd to 0.10.10 which is a stable version:

$ gem uninstall fluentd
$ gem install fluentd -v 0.10.10

I'll fix this problem at the next version.

@frsyuki
Copy link
Member

frsyuki commented Feb 22, 2012

I released v0.10.13 that fixed this problem.
Please check it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants