【发布时间】:2012-01-24 20:02:00
【问题描述】:
我们使用共享服务器(在 RackSpace 上)进行 Magento 开发。每个开发人员都有自己的沙箱,但 PHP 的 memory_limit = 512M 和当我尝试检查一些对象时 [使用 Mage::log($someBigArray)],我遇到了失败,Apache 记录了这个:
[Mon Jan 23 15:47:35 2012] [error] [client 208.247.73.130] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 228065281 bytes) in /home/msmith/projects/ref/app/Mage.php on line 761, referer: http://ref.msmith.mage.example.com/checkout/cart/
我的老板想增加内存以便我们可以进行这种日志记录。目前我们只有三个开发人员,但我们希望能够增加到 15 个。在 php.ini 中为memory_limit 设置多少内存来支持共享服务器上的这么多开发人员是合适的?
【问题讨论】: