PHP内存溢出有关问题Fatal error: Out of memory
Jun 13, 2016 pm 01:53 PM
dede
error
memory
php
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 of this Website
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

Hot Article
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
R.E.P.O. Save File Location: Where Is It & How to Protect It?
3 weeks ago
By DDD

Hot tools Tags

Hot Article
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
R.E.P.O. Save File Location: Where Is It & How to Protect It?
3 weeks ago
By DDD

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development
