运行一段时间,提示process terminated with ERROR: E_ERROR "Allowed memory size of 1073741824 bytes exhausted (tried to allocate 69632 bytes),之前发问过,苦于一直没解决,路过大佬看到在指点下,谢谢

jy123

截图
2022-05-02 19:13:05 pid:9190 worker[BusinessWorker:12982] exit with status 65280
2022-05-02 22:37:43 pid:20691 Worker[20691] process terminated with ERROR: E_ERROR "Allowed memory size of 1073741824 bytes exhausted (tried to allocate 81920 bytes) in /www/wwwroot/xxx/vendor/workerman/gateway-worker/src/Gateway.php on line 624"
2022-05-02 22:37:43 pid:9190 worker[thinkphp:20691] exit with status 65280
2022-05-03 15:40:12 pid:3382 Worker[3382] process terminated with ERROR: E_ERROR "Allowed memory size of 1073741824 bytes exhausted (tried to allocate 69632 bytes) in /www/wwwroot/xxx/vendor/workerman/workerman/Connection/TcpConnection.php on line 590"
2022-05-03 15:40:12 pid:9190 worker[BusinessWorker:3382] exit with status 65280
2022-05-03 15:40:13 pid:3122 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://doc2.workerman.net/send-buffer-to-worker-fail.html
2022-05-03 15:40:13 pid:3122 SendBufferToWorker fail. The connections between Gateway and BusinessWorker are not ready. See http://doc2.workerman.net/send-buffer-to-worker-fail.html
2022-05-03 22:10:23 pid:2850 Worker[2850] process terminated with ERROR: E_ERROR "Allowed memory size of 1073741824 bytes exhausted (tried to allocate 69632 bytes) in /www/wwwroot/xxx/vendor/workerman/workerman/Connection/TcpConnection.php on line 590"
2022-05-03 22:10:23 pid:9190 worker[BusinessWorker:2850] exit with status 65280
2022-05-04 03:21:51 pid:3122 Worker[3122] process terminated with ERROR: E_ERROR "Allowed memory size of 1073741824 bytes exhausted (tried to allocate 81920 bytes) in /www/wwwroot/xxx/vendor/workerman/gateway-worker/src/Gateway.php on line 624"
2022-05-04 03:21:51 pid:9190 worker[thinkphp:3122] exit with status 65280
2022-05-04 11:16:23 pid:12491 Workerman[think] status

2761 2 0
2个回答

walkor 打赏

看起来是业务代码有内存泄漏,需要自己定位哪里内存泄漏。这个别人帮不上忙。

  • jy123 2022-05-04

    好的大佬,这个和前端连接数量有关系吗,还是就是后端业务的问题

  • walkor 2022-05-04

    看起来是业务代码问题,另外event扩展也没有安装

  • jy123 2022-05-04

    workerman/workerman/Connection/TcpConnection.php on line 590"-- workerman/gateway-worker/src/Gateway.php on line 624"
    为什么会提示这两行呢,代码没有动过。大佬有空劳烦在指点下

  • jy123 2022-05-04

    大佬,因为业务代码很简单,就是建立链接实时推送数据。看不出来哪里有问题。(本人比较菜。)

  • jy123 2022-05-04

    event扩展,现在的并发连接数并不大,应该不用装吧

2548a

都说了业务代码内存泄漏,看不出来你倒是贴出来让别人看呀,不然问破天了也没人能给你解决.

  • 暂无评论
年代过于久远,无法发表回答
×
🔝