Simple question. What is your recommended PHP memory limit for Magento?

2 Answers 2


Recommended PHP memory limit for Magento is 512M

From System Requirements Prior to EE 1.14.1 and CE 1.9.1:


  • PHP Compatibility:
    • PHP 5.4 is supported natively by EE 1.14 and later and by CE 1.9 and later
    • Earlier CE and EE versions support 5.2.13 - 5.3.24; or 5.4.x with a patch for CE or EE (the patch is listed as PHP 5.4 Compatibility in the EE support portal)
    • Required extensions:
      • PDO_MySQL
      • simplexml
      • mcrypt
      • hash
      • GD
      • DOM
      • iconv
      • curl
      • SOAP (if Webservices API is to be used)
    • Safe_mode off
    • Memory_limit no less than 256Mb (preferably 512) [bold added]


For above these versions no memory is specified for system requirements only the PHP versions (PHP 5.4 and 5.5), but there are known issues with the default PHP memory limit of 128 Mb for these PHP versions.

  • any references? Commented Jan 13, 2014 at 5:43
  • 1
    – Tejas Shah
    Commented Jan 13, 2014 at 5:47
  • 256M died and was buried with version 1.6, time to move on. Last thing you want is a hiccup in the back end caused by exceeding memory limits during a crucial operation. People tend to forget when they spec out a service plan, that the OS, web server, mysql and the php interpreter all need memory to live in, before you even begin to run Magento. Commented Jan 13, 2014 at 6:50

I always give my Magento Projects 1024M of memory and up the max_execution_time setting in the PHP file as well.

This recommendation is based on personal experience with file uploads timing out due to PHP having a default max_execution_time of 30 seconds, which in theory should be fine 99% of the time, but sometimes it just isn't enough.

  • I do pretty much the same Commented Jan 14, 2014 at 0:13
  • what value do you use for max_execution_time?
    – jrosell
    Commented Dec 11, 2015 at 10:44
  • I have used anywhere from 120 seconds to 300 seconds. However if something is taking 5 minutes to complete then there are probably other issues that should be addressed.
    – Vallier
    Commented Jan 6, 2016 at 16:36
  • Vallier, can you expand on what process you wait 5 minutes to complete for? Any front end visitor should have a page load in less than a second, anything more is too slow. If you are importing data in the admin, or other tasks that could take some time, then the time limit really depends on the amount of processing required. So not sure where the 5 minutes comes from. Commented Mar 1, 2016 at 12:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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