PHP message: PHP Fatal error: Allowed memory size of 657217728 bytes exhausted

一 问题来源

      正在进行开发的时候,突然接到一个报警信息,线上的某个接口出现了如下报错信息:2022/11/29 15:57:32 [error] 1604#1604: *7804002165 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 657217728 bytes exhausted (tried to allocate 20480 bytes) in /home/webroot/xxxx.php on line 1140" while reading response header from upstream, client: 100.132.22.26, server: ~^(.+)?.(.+)?.(sg|com)$, request: "POST ........;出现这样的问题了,肯定要优先解决线上这样的报错!于是放下手上当前的工作,排查起这个问题来了。


二 问题的定位以及出现的原因

      定位到具体的代码,类似如下:


public function toggleInfo()
	{
   
    
    
		、、、、、、、、、、、、、、、
		
		

猜你喜欢

转载自blog.csdn.net/whq19890827/article/details/128194578
今日推荐