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

mongodb偶尔会出现Connection refused #54

Open
hanchikang opened this issue Jun 6, 2022 · 2 comments
Open

mongodb偶尔会出现Connection refused #54

hanchikang opened this issue Jun 6, 2022 · 2 comments

Comments

@hanchikang
Copy link

偶尔出现报错:unable to establish connection tcp://127.0.0.1:6012: Connection refused (111)

PHP版本:7.4.28

swoole:

Swoole => enabled
Author => Swoole Team <team@swoole.com>
Version => 4.8.5
Built => May  9 2022 18:04:04
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
openssl => OpenSSL 1.0.2k-fips  26 Jan 2017
http2 => enabled
curl-native => enabled
pcre => enabled
zlib => 1.2.7
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
mysqlnd => enabled
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608

gotask版本:v2.2.9

@hanchikang
Copy link
Author

ps看进程时间,应该是go进程突然就重启了,导致失败的

@hanchikang
Copy link
Author

已经解决:是因为系统允许打开最大文件数不够,链接多了,就导致上述问题。
查看方式:ulimit -n

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

1 participant