问题描述:
register、gateway、business、queue分别部署的。
business worker频繁出现报错,请求各位大神帮助。
报错:
[02-Nov-2021 10:24:05 Asia/Shanghai] PHP Warning: Unknown: Epoll MOD(4) on fd 75 failed. Old events were 6; read change was 2 (del); write change was 0 (none); close change was 0 (none): Bad file descriptor in Unknown on line 0
[02-Nov-2021 10:24:05 Asia/Shanghai] PHP Warning: Unknown: Epoll MOD(4) on fd 79 failed. Old events were 6; read change was 2 (del); write change was 0 (none); close change was 0 (none): Bad file descriptor in Unknown on line 0
系统环境:
开发环境docker部署
PHP 7.4.24 (cli) (built: Oct 14 2021 23:16:16) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.24, Copyright (c), by Zend Technologies
扩展/包 | 版本 |
---|---|
gateway-worker | 3.0.20 |
gatewayclient | 3.0.13 |
workerman | 4.0.22 |
event | 3.0.6 |
libevent2 | 2.1.12-stable |
这个报错没遇到过,看起来是event扩展报的错。
看下是哪个进程报错的(大概率是top命令里cpu较高的php进程),报错里
Unknown: Epoll MOD(4) on fd 75 failed
包含了fd的信息,利用命令lsof -nPp 进程pid
看下对应的fd是什么。