Didn't find what you're looking for?
Custom Search

PHP Fatal error: Allowed memory size of 33554432 bytes exhausted

PHP Fatal error: Allowed memory size of 33554432 bytes exhausted
This form of error usually occurs when:

  • your script grabs just over the 8MB default memory limit of PHP
  • there's a bug in your script
  • the output is very large
To solve this problem you should try to:
  • optimize your script so that it will not eat up the maximum memory limit
  • find bugs (memory leaks) in your script
  • minimize the output of your script
  • increase the memory_limit setting in php.ini or directly in your php script by using the ini_set() function
  • upgrade to PHP 5 (some tried to install a PHP app that would not work even when limit is set to 300M)
The 8MB default limit is implemented in php to prevent any script from eating up the server's memory and crashing it. Therefore, to solve the problem it is adviseable to look into reducing the amount of resources it requires than increasing the limit value.

More information on "PHP Fatal error: Allowed memory size of 33554432 bytes exhausted" at:

0 comments:

Recent Articles

Web Development

Comprehensive resources for web development and Internet in general.

Firefox Web Development Tools

If you are a Web developer you must have these great useful tools in your arsenal.

Site Point Trends

Recent Comments