Home  >  Article  >  Backend Development  >  PHP内存溢出有关问题Fatal error: Out of memory

PHP内存溢出有关问题Fatal error: Out of memory

WBOY
WBOYOriginal
2016-06-13 13:53:402684browse


求助:PHP内存溢出问题Fatal error: Out of memory
Fatal error: Out of memory (allocated 786432) (tried to allocate 1572864 bytes) in E:\wwwroot\lunannews\dede\archives_do.php on line 997

后台发布文章提示如上,DEDE5.6的程序, 大约5W篇文章,流量很少几千, 任务管理器里CPU使用率5%以下,PF使用1G左右。
服务器是xeon E5606 4G内存
前几个月有过一次 我吧PHP.INI里面的memory_limit = 4000M 改到了 3000M, 现在又出现这种情况,改到4000M好了。
流量很少,内容也不多。 这个吃内存法怎么都不够吃的啊。


------解决方案--------------------
这个php文件是干什么的?
是否每次(或频率很高)?
在文件里加上memory_get_usage,找到吃内存不合理的部分贴出来再看
重点检查有循环的部分


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn