Simple question. What is your recommended PHP memory limit for Magento?
Recommended PHP memory limit for Magento is 512M
- 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:
- 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.
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.