Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1540673 bytes) in /home/appdev/glicious/Nutrition.php on line 41

If you haven't noticed, 134217728 is two orders of magnitude greater than 1540673.

share|improve this question
up vote 18 down vote accepted

The first number is the maximum amount you can allocate, the second is the amount you attempted to allocate that bumped you over the edge. You could have had (first number - 1) bytes allocated already...

share|improve this answer
Aaah okay thanks for clarifying that. The message is a bit misleading /= – David Cowden Jun 18 '12 at 5:06
Totally, lame error message. Yay PHP? :) – Bill Weiss Jun 18 '12 at 15:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.