Allowed memory size of 1916796928 bytes exhausted (tried to allocate 3086655745 bytes)
错误位置
FILE: /data/xxx/ThinkPHP/Common/functions.php LINE: 370
ThinkPHP3.2.2 { Fast & Simple OOP PHP fr
---------------
环境是 php5.4+nginx + mysql ,机器为阿里云主机,内存为1024m
请问有碰到这样问题的人么?
是咋回事?如何解决?修改www.conf 还是依然出现这个问题。
-------------------------------------------------------------
问题原因已经找到,是preg_replace_callback出现内存泄露导致。随便google一下就会发现同样 问题,国内发现这样问题的人比较少。
最佳答案