Home > Backend Development > PHP Tutorial > Fatal Error: Allowed memory size of 123456789 bytes exhauste_PHP教程

Fatal Error: Allowed memory size of 123456789 bytes exhauste_PHP教程

WBOY
Release: 2016-07-13 10:57:17
Original
1267 people have browsed it

When running dedecms today, some pages will prompt Fatal Error: Allowed memory size of 123456789 bytes exhausted. Let me introduce how to solve some problems.

Error message

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3214636 bytes) in E:VertrigoServwwwinstall.php on line 488

We directly create a phpinfo.php file and write the following code

Then you can check your memory

Insufficient php memory allocation:

1. Modify php.ini (recommended)

 代码如下 复制代码
memory_limit = 12M (改大点) 


2. Add the following statements in the program   

Modify php’s memory settings during runtime

Just add the following command line to your php code.

 
The code is as follows
 代码如下 复制代码

ini_set('memory_limit','128M');

?>

  

Copy code

 代码如下 复制代码

php_value max_execution_time 1200
php_value memory_limit 200M
php_value post_max_size 200M
php_value upload_max_filesize 200M

ini_set('memory_limit','128M');

?>

The code is as follows Copy code
php_value max_execution_time 1200 php_value memory_limit 200M php_value post_max_size 200M php_value upload_max_filesize 200M What should the memory_limit be set to?
This completely depends on the requirements of your application. For example, WordPress requires 32MB to run the core code. Drupal 6 requires this value to be at least 16MB, and recommends setting it to 32MB. If you install a lot of plug-ins, especially those that require image processing, you may need 128MB or more memory.
http://www.bkjia.com/PHPjc/632094.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632094.htmlTechArticleWhen running dedecms today, some pages will prompt Fatal Error: Allowed memory size of 123456789 bytes exhausted, below I Let me introduce to you how to solve some problems. Error message...
Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template