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

使用这个socket会报cpu使用100% #3

Open
weiweiwoxin opened this issue Nov 3, 2017 · 2 comments
Open

使用这个socket会报cpu使用100% #3

weiweiwoxin opened this issue Nov 3, 2017 · 2 comments

Comments

@weiweiwoxin
Copy link

借用这个插件的时候,客户端和服务端分离,当服务端一直运行时,当每次新建一个客户端socket时,就会产生一个监听,然后监听一个连接,这样使用就会出现cpu使用100%的情况,使用jstack查了一下堆栈信息,发现监听线程和BufferedReader一直阻塞。然后我在BufferedReader接收消息然后回复后就马上关掉它,暂时保证CPU使用没有达到100%

@areong
Copy link
Owner

areong commented Nov 7, 2017

@weiweiwoxin 哎呀我檢查一下,謝謝回報

@areong
Copy link
Owner

areong commented Mar 30, 2018

@weiweiwoxin 請試試 #6 還有沒有你遇到的問題(實作方法詳見 #5

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