gotask icon indicating copy to clipboard operation
gotask copied to clipboard

mongodb偶尔会出现Connection refused

Open hanchikang opened this issue 3 years ago • 2 comments

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

PHP版本:7.4.28

swoole:

Swoole => enabled
Author => Swoole Team <[email protected]>
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 avatar Jun 06 '22 08:06 hanchikang

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

hanchikang avatar Jun 06 '22 08:06 hanchikang

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

hanchikang avatar Jun 10 '22 02:06 hanchikang