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教程

Jul 13, 2016 am 10:57 AM
bytes error fatal memory size

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...
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 AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What to do if there is a fatal error when opening a game in win10? What to do if there is a fatal error when opening a game in win10? Feb 09, 2024 pm 12:54 PM

What should I do if there is a fatal error when opening a game in win10? What should we do if a fatal error message appears when running software or games? Let this site carefully introduce to users how to deal with the fatal error when opening games in Win10. What should I do if there is a fatal error when opening a game in win10? Method 1: There are problems with the game client, such as file damage or the use of some cracking patches, which will lead to fatalerror errors. You can re-download the game. Method 2: Too small computer memory can also cause fatalerror errors. If the physical memory is sufficient, you can try to set the virtual memory of the system.

Solution to PHP Fatal error: Call to undefined method PDO::prepare() in Solution to PHP Fatal error: Call to undefined method PDO::prepare() in Jun 22, 2023 pm 06:40 PM

PHP is a popular web development language that has been used for a long time. The PDO (PHP Data Object) class integrated in PHP is a common way for us to interact with the database during the development of web applications. However, a problem that some PHP developers often encounter is that when using the PDO class to interact with the database, they receive an error like this: PHPFatalerror:CalltoundefinedmethodPDO::prep

What should I do if 'Uncaught (in promise) Error: Request failed with status code 500' occurs when using axios in a Vue application? What should I do if 'Uncaught (in promise) Error: Request failed with status code 500' occurs when using axios in a Vue application? Jun 24, 2023 pm 05:33 PM

It is very common to use axios in Vue applications. axios is a Promise-based HTTP client that can be used in browsers and Node.js. During the development process, the error message "Uncaught(inpromise)Error: Requestfailedwithstatuscode500" sometimes appears. For developers, this error message may be difficult to understand and solve. This article will explore this

Solve the problem of 'error: incomplete type is not allowed' in C++ code Solve the problem of 'error: incomplete type is not allowed' in C++ code Aug 26, 2023 pm 08:54 PM

Solve the "error:incompletetypeisnotallowed" problem in C++ code. During the C++ programming process, you sometimes encounter some compilation errors. One of the common errors is "error:incompletetypeisnotallowed". This error is usually caused by operating on an incomplete type. This article will explain the cause of this error and provide several solutions. firstly, I

Use java's File.length() function to get the size of the file Use java's File.length() function to get the size of the file Jul 24, 2023 am 08:36 AM

Use Java's File.length() function to get the size of a file. File size is a very common requirement when dealing with file operations. Java provides a very convenient way to get the size of a file, that is, using the length() method of the File class. . This article will introduce how to use this method to get the size of a file and give corresponding code examples. First, we need to create a File object to represent the file we want to get the size of. Here is how to create a File object: Filef

How to solve the fatal error in Final Fantasy 7 How to solve the fatal error in Final Fantasy 7 Mar 07, 2024 pm 04:40 PM

When players play Final Fantasy 7, many players encounter fatal error problems and do not know how to solve them. It is usually about the problem that the memory cannot be read. It is recommended that players try to reinstall the game to solve the problem. How to solve the Final Fantasy 7 fatal error 1. Reinstall the game. Game client problems, such as file damage, incompleteness, and the use of some crack patches will lead to fatal errors. It is recommended to reinstall the game. 2. Remove the read-only properties of all files. Some file properties should not be read-only but are set to read-only. Just remove the read-only properties of all files. For example, if a game cannot be played, right-click on the game. Install the folder and cancel the read-only attribute. 3. Setting virtual memory may be due to the memory being too small. If the physical memory is sufficient

0271: What should I do if the computer cannot be turned on due to real time clock error? 0271: What should I do if the computer cannot be turned on due to real time clock error? Mar 13, 2023 am 11:30 AM

Solution to "0271: real time clock error" that cannot boot: 1. Press F1, and in the interface that appears, move the option bar to the third item "Date/Time"; 2. Manually change the system time to the current one time; 3. Press F10 and select yes in the pop-up dialog box; 4. Re-open the notebook to boot normally.

Solve the 'error: expected initializer before 'datatype'' problem in C++ code Solve the 'error: expected initializer before 'datatype'' problem in C++ code Aug 25, 2023 pm 01:24 PM

Solve the "error:expectedinitializerbefore'datatype'" problem in C++ code. In C++ programming, sometimes we encounter some compilation errors when writing code. One of the common errors is "error:expectedinitializerbefore'datatype'". This error usually occurs in a variable declaration or function definition and may cause the program to fail to compile correctly or

See all articles