-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
High cpu load when set heartbeat_check_interval in SWOOLE_PROCESS mode on WSL #3483
Comments
@gmsj0001 请贴出你 Server 的所有配置项 |
测试代码:
环境:Win10 2004 WSL bash |
无法重现你的问题。请尝试清理工程,并重新编译 swoole 使用 strace 、gdb 等工具跟踪程序执行。 |
[自动回复] 为了中文搜索引擎收录以便于后人检索和Github各国友人参与理解所需,本repo只接受英文issue 中文issue请前往Swoole中文问答社区 谢谢合作! |
Finally found libc sleep failed and immediately returned in swHeartbeatThread_loop, causing 100% CPU load. 活久见,Sleep都能失败 |
设置心跳检测后,PROCESS模式CPU会占用到100%,BASE模式则一切正常
生产环境的CentOS并没有发现这个问题,不知道是不是WSL的bug
The text was updated successfully, but these errors were encountered: