-
Notifications
You must be signed in to change notification settings - Fork 155
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
linux 上基本测试不过去 #2
Comments
你修改一下Linux最大文件句柄数限制,没记错的话默认只有几百个,你测试没带-k,也就意味着每个请求都会建立连接然后断开连接,socket本质上也是文件句柄,可用的socket基本都还在TIME_WAIT状态没来得及被系统回收,新的请求又不停到来,导致没有可用句柄,从而导致accept失败。
这就是你这现象背后的原因,至于怎么改句柄限制,自行Google一下,每个发行版都不太一样。
发自我的 iPhone
在 2017年6月6日,17:48,xalionquan <notifications@github.com<mailto:notifications@github.com>> 写道:
在ubuntu 上,用delphi 10.2 编译例子。
用ab 测试,基本上跑不下来。
[qq 20170606173911]<https://cloud.githubusercontent.com/assets/17444198/26823438/37f2c272-4ae0-11e7-9f83-3fffc6f19baa.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#2>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADEoXVieZMlM7BoC9XK-aJOnMwq6E8tKks5sBSBLgaJpZM4NxGrN>.
|
好的,我再查一下,谢谢。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在ubuntu 上,用delphi 10.2 编译例子。
用ab 测试,基本上跑不下来。
The text was updated successfully, but these errors were encountered: