-
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
5.1.6,使用RedisPool高并发出错 ERROR php_swoole_server_rshutdown() (ERRNO 503) #5630
Comments
补充下报错信息:
sysctl.conf
|
看看服务器或者redis服务器的ulimit -n是多少 |
检查一下redis客户端的最大连接数,这里段错误是因为连接超时,抛异常了没有捕获 |
ulimit -n |
|
redis配置也没问题 ,就是高并发时候 会出现链接问题。 目前我用的 Table 替代的 redis,但有些功能Table不能满足. 所以还是希望能redis. |
执行redis-cli,输入config get maxclients看看是多少 |
你这个10万个连接有点多了,控制一下进程可以创建的redis数量,最好所有进程可以创建的redis连接数加起来小于redis允许的客户端最大连接数 |
OK 我试试提前创建 |
Please answer these questions before submitting your issue.
server.php
在websocket onpen事件时,如果有高并发,大约1s 1000个连接,会有一定几率产生错误,1000个连接失败几十个,产生如下错误:
What did you expect to see?
What did you see instead?
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: