log的错误日志

jy123

2022-04-19 17:00:05 pid:32166 Worker[32166] process terminated with ERROR: E_ERROR "Allowed memory size of 1073741824 bytes exhausted (tried to allocate 69632 bytes) in /www/wwwroot/apis.lorriket.net/vendor/workerman/workerman/Connection/TcpConnection.php on line 590"
2022-04-19 17:00:05 pid:4063 worker[thinkphp:32166] exit with status 65280
2022-04-19 19:11:53 pid:4063 worker[BusinessWorker:14712] exit with status 65280
2022-04-20 00:22:05 pid:8393 Worker[8393] process terminated with ERROR: E_ERROR "Allowed memory size of 1073741824 bytes exhausted (tried to allocate 69632 bytes) in /www/wwwroot/apis.lorriket.net/vendor/workerman/workerman/Connection/TcpConnection.php on line 590"
2022-04-20 00:22:05 pid:4063 worker[BusinessWorker:8393] exit with status 65280
麻烦大佬们指点下

1267 2 1
2个回答

six

Gatewayworker+thinkphp?
看起来是内存耗尽。如果你用了thinkphp的orm,记得设置'trigger_sql' => false,不然thinkrom会内存泄漏

  • jy123 2022-04-20

    大佬这是tp本身的问题吗,关闭这个监听后有什么影响吗

  • six 2022-04-20

    thinkorm在cli下运行的问题,一直记录sql日志到内存,随着sql增多,内存不断增加。设置 'trigger_sql' => false 不影响业务

  • jy123 2022-04-20

    好的,谢谢大佬

  • jy123 2022-04-21

    2022-04-21 08:43:52 pid:9190 Workerman[think] start in DEBUG mode
    2022-04-21 08:44:42 pid:28272 worker[28272] remains 4 connection(s)
    2022-04-21 08:47:29 pid:28272 worker[28272] remains 2 connection(s)
    2022-04-21 16:03:05 pid:9192 Worker[9192] process terminated with ERROR: E_ERROR "Allowed memory size of 1073741824 bytes exhausted (tried to allocate 69632 bytes) in /www/wwwroot/apis.lorriket.net/vendor/workerman/workerman/Connection/TcpConnection.php on line 590"
    2022-04-21 16:03:05 pid:9190 worker[BusinessWorker:9192] exit with status 65280
    2022-04-21 16:03:06 pid:9193 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://doc2.workerman.net/send-buffer-to-worker-fail.html
    2022-04-21 16:03:06 pid:9193 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://doc2.workerman.net/send-buffer-to-worker-fail.html 大佬还是会出现。。方便在指点下吗

  • six 2022-04-21

    compose info 看下workerman版本
    尝试升级下workerman试下吧

  • jy123 2022-04-22

    好的谢谢

  • wjk740555459 2022-07-23

    老铁,这个问题解决了么??? 我也是590行报错

Tinywan
年代过于久远,无法发表回答
🔝