运行一段时间后,gateway和businessworker连不上,worker停止运行

0

之前稳定运行了几个月没问题,最近频繁出现这个问题,大概一天会出现两次,没法正常运行了,看日志好像是gateway和businessworker突然连不上,什么原因会导致这样呢
异常信息如下:


pid:42 Exception: can not connect to tcp://127.0.0.1:39130 Connection refused in /app/vendor/workerman/gateway-worker/src/Lib/Gateway.php:1143
Stack trace:
#0 /app/vendor/workerman/gateway-worker/src/Lib/Gateway.php(1092): GatewayWorker\Lib\Gateway::sendAndRecv('127.0.0.1:39130', Array)
#1 /app/vendor/workerman/gateway-worker/src/BusinessWorker.php(378): GatewayWorker\Lib\Gateway::getSession('7f00000198da000...')
#2 /app/vendor/workerman/workerman/Connection/TcpConnection.php(658): GatewayWorker\BusinessWorker->onGatewayMessage(Object(Workerman\Connection\AsyncTcpConnection), Array)
#3 [internal function]: Workerman\Connection\TcpConnection->baseRead(Resource id #152, 2, Resource id #152)
#4 /app/vendor/workerman/workerman/Events/Event.php(195): EventBase->loop()
#5 /app/vendor/workerman/workerman/Worker.php(2382): Workerman\Events\Event->loop()
#6 /app/vendor/workerman/gateway-worker/src/BusinessWorker.php(197): Workerman\Worker->run()
#7 /app/vendor/workerman/workerman/Worker.php(1490): GatewayWorker\BusinessWorker->run()
#8 /app/vendor/workerman/workerman/Worker.php(1320): Workerman\Worker::forkOneWorkerForLinux(Object(GatewayWorker\BusinessWorker))
#9 /app/vendor/workerman/workerman/Worker.php(1294): Workerman\Worker::forkWorkersForLinux()
#10 /app/vendor/workerman/workerman/Worker.php(509): Workerman\Worker::forkWorkers()
#11 /app/Applications/Server/start.php(44): Workerman\Worker::runAll()
#12 {main}
pid:42 Worker[42] process terminated
已邀请:

walkor

赞同来自:

出现这个问题后运行 php start.php status 贴下结果。

lin60 -

赞同来自:

截图

要回复问题请先登录注册