2015-12-21 164 views
0

我正在使用一个拥有超过50,000个产品的magento站点。当我看到时,网站在5-6天之前在服务器上正常工作。但突然它给出了一个内存不足的错误。magento - 致命错误:内存不足(分配31719424)(试图分配32个字节)

Fatal error: Out of memory (allocated 14680064) (tried to allocate 875 bytes) in /home/shirtcompany/public_html/mysite/app/code/core/Zend/Db/Statement.php on line 194 

我试图用从index.php文件设置内存限制 -

ini_set("memory_limit", "500M"); 
ini_set("max_execution_time", "300"); 

,但每当我试图改变存储器限值加载该页面,出现内部错误或它给相同的内存不足错误与不同的文件名替代。

Fatal error: Out of memory (allocated 27787264) (tried to allocate 99 bytes) in /home/shirtcompany/public_html/digitalhill/DigitalHill/lib/Varien/Object.php on line 

我试过将内存限制改为10000M但没用。 另外我尝试从服务器中删除所有缓存数据。

任何人都可以帮助摆脱这个问题吗?

任何帮助表示赞赏。

谢谢。

回答

0

尝试更改ini_set为ini_set('memory_limit', -1)

+0

感谢您的回复。但没有这个运气...... :( – SandyK

相关问题