之前穩(wěn)定運行了幾個月沒問題,最近頻繁出現(xiàn)這個問題,大概一天會出現(xiàn)兩次,沒法正常運行了,看日志好像是gateway和businessworker突然連不上,什么原因會導(dǎo)致這樣呢
異常信息如下:
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