PHP Fatal Error: Allowed memory size of 8388608 bytes exhausted

July 25, 2009 · Filed Under How To and Online Tutorials · Comment 
↓ Sponsored Links

Are you experiencing the “Allowed memory size of 8388608 bytes exhausted” php error message? This error message is due to previous functional PHP script that consumed the default 8MB memory limit. One of the reason being poorly coded php script, causing the server to crash. It is always advisable to reduce the memory footprint than to increase the memory limit.

PHP Fatal Error: Allowed memory size of 8388608 bytes exhausted

To change the memory limit for one specific script by including a line such as this at the top of the script:

    ini_set(”memory_limit”,”12M”);

Now the memory limit is set at 12MB, if that doesn’t work, keep on increasing the memory limit. Do note that this is not a long term solution. To make permanent changes to all PHP scripts running on the server, add the following line to your server’s php.ini (requires SSH login)

    memory_limit = 12M

Again, this is a short term solution unless you have a really powerful server with lots of memory to spare. However, some software or scripts are run infrequently and require lots of memory like importing and processing a huge data file such as your MySQL backup file.

If you’re unfamiliar with Linux command, use WinSCP, this is a free and user friendly windows SSH client.

Tags: , , , , , , ,

Increase Windows XP And Vista Computer Memory Speed For Games

June 2, 2009 · Filed Under Software · 1 Comment 
↓ Sponsored Links

2GB is hardly sufficient in today’s computing environment, especially for those involved in the graphic and gaming industry. These application can be a memory hog. If upgrading a physical RAM onto your computer is not an option, you ought to try CleanMem. As the name implies, CleanMem removes memory no longer being used by Windows. The best part is, Cleanmem is a set it and forget it program. No unwanted tweaking and fancy graphic like other RAM booster, it just works.

Cleanmem is very small as it doesn’t need to do much. First off Cleanmem doesn’t clean the memory from the processes itself! It asks Windows to do that. When the program starts up it grabs a list of running processes. It then grabs the ID of each process and calls the Windows API EmptyWorkingSet for each processes, Cleanmem of course checks the ignore list and skips those processes. Then Windows cleans the process, and once all the processes have been cleaned Cleanmem closes itself.

Does CleanMem works? Just because it doesn’t have a fancy graphic with rainbow colour bars doesn’t mean it is not working. Take a look at the before and after screenshot I managed to capture. Download CleanMem 1.4.0 (1.70MB)

Ways To Increase Windows Computer's RAM Memory Speed

Ways To Increase Windows Computer's RAM Memory Speed

Bottom line is, it works!

Related Posts with Thumbnails
Tags: , , , , , , , ,

Related Articles:

Similar posts you may be interested in based on past browsing


 

Page 1 of 212»