Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Memory Limit
 
Nickyfashion
Sr. Member
 
Avatar
Total Posts:  116
Joined:  2009-08-19
Bangkok/Miami
 

I am currently running a medium sized store based upon Magento 1.5.10 however I noticed that recently I get some “PHP Fatal error:  Allowed memory size” errors.

Please note that my current memory limit is set pretty high in my .htaccess which is also recognized if I check my phpinfo. This error just occurs from time to time, yet I would like to find out the cause of it and potentially get rid of it.

Here my error_log:

[15-Jan-2013 19:32:47 UTC] PHP Fatal error:  Allowed memory size of 52428800 bytes exhausted (tried to allocate 63537 bytesin /home/public_html/includes/src/__default.php on line 2991
[15
-Jan-2013 19:36:25 UTC] PHP Fatal error:  Allowed memory size of 52428800 bytes exhausted (tried to allocate 512 bytesin /home/public_html/includes/src/__default.php on line 935
[15
-Jan-2013 19:46:26 UTC] PHP Fatal error:  Allowed memory size of 52428800 bytes exhausted (tried to allocate 113 bytesin /home/public_html/includes/src/Varien_File_Csv.php on line 114
[17
-Jan-2013 12:30:26 UTC] PHP Fatal error:  Allowed memory size of 52428800 bytes exhausted (tried to allocate 7680 bytesin /home/public_html/includes/src/Mage_Customer_Block_Widget_Dob.php on line 44
[17
-Jan-2013 23:57:11 UTC] PHP Fatal error:  Allowed memory size of 52428800 bytes exhausted (tried to allocate 7680 bytesin /home/public_html/includes/src/Mage_Sales_Block_Order_Email_Items_Order_Default.php on line 74

Does anybody know how to troubleshoot this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
CGAMES
Jr. Member
 
Total Posts:  10
Joined:  2012-10-20
 

Hello,
raise the memory limit. As far I know 512 is recommend for magento. Depending on your extension maybe more is needed.

Just try to change it to 768 or 1024 if the problem stops you can be sure it was the memory limit

 
Magento Community Magento Community
Magento Community
Magento Community
 
Nickyfashion
Sr. Member
 
Avatar
Total Posts:  116
Joined:  2009-08-19
Bangkok/Miami
 

Thank you for your reply.
My memory limit as already much higher then the recommended 512 MB - I’ve double checked running a phpinfo script on my Magento installation folder and the memory limit is there as defined in my htaccess, so I think this must be related to something else directly.

The error log states “Allowed memory size of 52428800” which translates to 50MB so I wondering where that is coming from.

Any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top