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

闲置的时候CPU占用率在5%~8% #8

Open
kira8565 opened this issue Jul 26, 2017 · 2 comments
Open

闲置的时候CPU占用率在5%~8% #8

kira8565 opened this issue Jul 26, 2017 · 2 comments

Comments

@kira8565
Copy link
Contributor

JLogStash使用文件输入、Netty输出的时候,在日志量很少或者没有的情况下,CPU依然会占用5-8%,管理器上面看到待唤醒线程数有2000+

@yangsishu
Copy link
Contributor

这个是jlogstash本生的核心代码是有2两个线程会定时的执行跟是否有数据无关,插件本生的实现也有一些线程做定时轮询,所以在数据很少的情况下依然占用一些cpu,这块我们也正在做重新设计

@kira8565
Copy link
Contributor Author

kira8565 commented Jul 29, 2017

恩,不然放做Agent显得资源占用过高,作为Server,带锁的处理队列以及闲置轮询队列处理还可以再加强些,可以试试Disruptor,效果挺好的

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