Allowed memory size of 134217728 bytes exhausted

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Allowed memory size of 134217728 bytes exhausted相关的知识,希望对你有一定的参考价值。

错误信息:
1,浏览器报500页面,
2,nginx日志报错信息如下:
[error] 11243#0: *11550 FastCGI sent in stderr: "php message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 57257775 bytes)

解决方法:
因为php默认内存限制是128M,所以需要修改php.ini文件。
找到memory_limit = 128M这一行,将128M改大点,我这里直接是改成了1024M。
重启相关服务:
/etc/init.d/php-fpm restart
/etc/init.d/nginx restart

以上是关于Allowed memory size of 134217728 bytes exhausted的主要内容,如果未能解决你的问题,请参考以下文章

PHP:Allowed memory size of 134217728 bytes exhausted问题解决方法

php遇到Allowed memory size of 134217728 bytes exhausted问题解决方法

php的Allowed memory size of 134217728 bytes exhausted问题

PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in

执行php程序的时候,报错Allowed memory size of 134217728 bytes exhausted (tried to allocate 83 bytes)

Allowed memory size of 134217728 bytes exhausted (tried to allocate 39845912 bytes)