-
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
使用enable_static_handler下载静态文件大量套接字错误 (macos下,wrk压测吞吐率低) #4639
Labels
Comments
ttc0419
changed the title
使用enable_static_handler下载静态文件速率低下
使用enable_static_handler下载静态文件大量套接字错误
Mar 4, 2022
因为开启了enable_static_handler之后,遇到匹配的请求是直接在reactor线程就直接返回结果了,请求并不会下发到worker进程。 |
@NathanFreeman 所以这个结果是正常的嘛?我看所有套接字错误应该都在几秒后产生的,前期CPU利用率都很高,后期几乎没有占有率,应该不正常吧? |
能上传一下套接字的错误信息吗,谢谢,我这边看看 |
@NathanFreeman 在第一份wrk输出里, |
NathanFreeman
changed the title
使用enable_static_handler下载静态文件大量套接字错误
使用enable_static_handler下载静态文件大量套接字错误 (macos下,wrk压测吞吐率低)
Mar 8, 2022
@matyhtf 这个issue还有一个问题还没有解决。使用swoole 4.8.8和php 8.1.4的情况下静态文件吞吐量还是低下。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
server.php:
使用wrk压测结果:
但是如果使用on request方式传输文件,就没有报错并且性能更好。
使用wrk压测结果:
What did you expect to see?
起码10K?
What did you see instead?
542.34,wrk输出显示有大量的套接字读取错误,通过htop观察,前期CPU占有率很高之后就几乎为0
What version of Swoole are you using (show your
php --ri swoole
)?uname -a
&php -v
&gcc -v
) ?The text was updated successfully, but these errors were encountered: