Symfony\Component\Debug\Exception\FatalErrorException: Allowed memory size of 2147483648 bytes
最近生产环境上出现了内存溢出的问题,由于项目中操作表格的地方超级多,所以一时半会没有办法定位到是哪出的代码引起的内存溢出。
[2023-02-02 12:16:22] lumen.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 4096 bytes) in /data/api/deploy/api-739-20230116165840/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet.php:1219
观察服务器内存使用情况,某核某一进程,将cpu使用率达到100%, 内存使用将近2G左右。
使用ps_aux | grep 4752 查看进程, 进程中执行的是这个任务
/usr/local/php/bin/php /data/api/wwwroot/artisan queue:work --queue=default,more_long redis --sleep=3 --tries=3 --daemon
查询第一次出现这个报错的地方,发生时间点是在 2023-01-17 15:50:02
然后找这个时间点之前的调度任务,发现在这个时间点附近有一条耗时队列执行失败。
根据日志查询到这个时间,商品运营操作人员,导入excel 表格中格式有问题,没有去除空白字符
phpExcel 类在读取表格文件的时候,出现了内存溢出的情况。
最后在生产上将这个调度任务强制关闭,才将问题解决。
Symfony\Component\Debug\Exception\FatalErrorException: Allowed memory size of 2147483648 bytes相关推荐
- Fatal error: Allowed memory size of 524288000 bytes exhausted (tried to allocate 64 bytes) in D
Fatal error: Allowed memory size of 524288000 bytes exhausted (tried to allocate 64 bytes) in D 从数据库 ...
- Php Fatal error: Allowed memory size of 33554432 bytes exhausted 的解决办法
Php Fatal error: Allowed memory size of 33554432 bytes exhausted 的解决办法 在 php.ini 配置文档里面,默认的memory_li ...
- php.ini 老薛,出现Allowed memory size of 134217728 bytes exhausted怎么办?
有站长在交流群内说到使用 ZBlogPHP 建站在发布文章的时候总是出现以下错误: Allowed memory size of 134217728 bytes exhausted(tried to ...
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 359404 bytes) in
为什么80%的码农都做不了架构师?>>> Fatal error: Allowed memory size of 8388608 bytes exhausted (tried ...
- php遇到Allowed memory size of 134217728 bytes exhausted问题解决方法
终端报出了Allowed memory size of 134217728 bytes exhausted错误,而且重启电脑再次执行仍然是一样.上网查了查,是因为php默认内存限制是128M,所以需要 ...
- 执行php程序的时候,报错Allowed memory size of 134217728 bytes exhausted (tried to allocate 83 bytes)...
执行php程序时,会报下面的错误 Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 83 ...
- php的Allowed memory size of 134217728 bytes exhausted问题解决办法
php的Allowed memory size of 134217728 bytes exhausted问题解决办法 参考文章: (1)php的Allowed memory size of 13421 ...
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 85 bytes)
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 85 bytes) PHP5中,对于m ...
- composer windows 下面内存溢出 Allowed memory size of 1610612736 bytes exhausted
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocat e 4096 bytes) in ph ...
最新文章
- 排序算法---快速排序(java版)
- 干货 | 一文带你搞定Python 数据可视化
- kotlin sealed 中_7.8 Kotlin Sealed类
- linux网络编程之IP协议首部格式与其配套使用的四个协议(ARP,RARP,ICMP,IGMP)和TCP、UDP协议头结构总结
- Sql Server RowNumber和表变量分页性能优化小计
- SQL Server CTE 递归查询全解
- java捕获异常和抛出异常_Java捕获多个异常,重新抛出异常
- vsCode配置通过Github同步(Settings Sync)
- DataFormatString属性语法介绍及解决DataFormatString无效的问题
- 飞鸽传书2007绿色版下载
- 智能餐厅 之 (智能厨房KDS)
- dot全称_DOT是什么
- Pascal trangle leetcode
- 时光金科php_重庆金科博翠宸章 | ACA麦垦景观
- 烟花智能直播助手,直播带货必备爆单工具【直播助手脚本+技术教程】
- 科创人·36氪副总裁王坤:企服产品应重视使用者体验,36氪将推出中国版「魔力象限」
- CS231n的第三次作业之循环神经网络
- GNU Radio教程1
- 五年级上册计算机教案闽教版,闽教版五年级上册信息技术教案
- Talk about----计算机发展编年史