phpycho — 2010-04-13T04:54:55-04:00 — #1
sometime we get such errors (esp in case of magento)
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 83 bytes) in .....
and one can say that it's due to memory limit issue.
Increasing memory_limit & max_execution_time may solve this issue.
But i would like to know.. what does the error says exactly?
do 83 bytes was not available or ....
Can anybody explain the error?
What does the 134217728 bytes & 83 bytes meants?
starlion — 2010-04-13T05:14:24-04:00 — #2
Your script tried to use up 134 Megabytes of memory to run.
The server stopped you from using more (to prevent a server crash).
You've probably put together a bad loop somewhere, if you're not playing around with VERY large files.
phpycho — 2010-04-13T05:19:10-04:00 — #3
you mean script tried to use 134 MB of memory to run but 83 bytes were unavailable to make suppliment of 134MB
starlion — 2010-04-13T05:22:30-04:00 — #4
PHP allocates memory on an as-need basis.
Your script said to it...
"I need 200 bytes of data to start" (I'm guessing numbers here. It's an example)
Server said "sure, here."
"I need 83 more bytes"
(rinse, repeat about 1000000 times...)
"I need 83 more bytes."
"No, you've had too many."
frank1 — 2010-04-13T07:19:57-04:00 — #5
The file has taken more memory than it is allocated in php.ini file seems like 200mb in this case
(thats why i say magento is heavy...lol)
Last time it happened to me ,i found these were the solution
ini_set('memory_limit', 200* 1024 * 1024);
memory_limit = 200M
php_value memory_limit 200M
mine was shared server so had to go with 3rd option.
It solved things...but at the same time you may want to relook into just created module or code change to inquire what actually is taking so much of the memory as default magento doesnt take that much of memory to run.....