我该如何解决Magento内存不足致命错误? [英] How can i solve Magento Out of memory Fatal error?

查看:328
本文介绍了我该如何解决Magento内存不足致命错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

带有xampp-win32-7.0.4的Magento 1.9.x随机显示以下类型错误

Magento 1.9.x with xampp-win32-7.0.4 showing following type error randomly

Fatal error: Out of memory (allocated 14680064) (tried to allocate 790528 bytes) in lib\Less\Parser.php on line 3719
Fatal error: Out of memory (allocated 134217728) (tried to allocate 16384 bytes) in lib\Varien\Image\Adapter\Gd2.php on line 74
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 16384 bytes) in lib\Zend\Db\Statement\Pdo.php on line 228

我尝试按以下链接操作,但没有任何反应

I try as following link but nothing happen

推荐答案

您可以尝试将Magentos根文件夹.htaccess中的内存限制增加到512.只需查找以下行并调整memory_limit的值即可:

You could try to increase the memory limit to 512 in your Magentos root folder .htaccess. Just find the following lines and adjust the value for memory_limit:

<IfModule mod_php5.c>

    ############################################
    ## adjust memory limit

    php_value memory_limit 512M

如果您仍然用完内存,则Magento安装中可能还会存在另一个问题,那就是消耗大量内存.

If you still run out of memory, there might be another problem in your Magento installation that consumes so much.

这篇关于我该如何解决Magento内存不足致命错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆