这是Magento的正常记忆行为吗 [英] Is this normal Magento memory behaviour

查看:68
本文介绍了这是Magento的正常记忆行为吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在配置和构建Magento站点,当前正在接收超出允许的内存消息,例如Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 77 bytes).尝试分配的内存总是很少,而且并非总是在同一时间发生(主要是Magento Collection管理代码和Varien/Object代码).

I am configuring and building a Magento site and currently receiving out of allowed memory messages like Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 77 bytes). Always the amount of attempted memory allocation is very small and it doesn't always occur at the same point (mostly Magento Collection management code and Varien/Object code).

我想知道这是正常现象还是不正确,因为仅用于客户端请求处理的64 mb看起来就足够了.我的数据库大小现在约为:
*〜2500个产品
*约700个属性集
*〜250个属性,这些属性确实具有超过13,000个选项(〜25,000个选项值)
* eav_entity_attribute大约有50,000条记录

I wonder if this is normal behaviour or that something is not right, because 64 mb for just a client request handling seems quite much. My database size is now about:
* ~2500 products
* ~700 attribute sets
* ~250 attributes which do have over 13,000 options (~25,000 option values)
* eav_entity_attribute is about ~50,000 records

我感到Magento正在从数据库中预加载太多数据,并想知道你们中是否有人遇到过同样的问题,或者是否有想法花费那么多内存.

I have the feeling Magento is preloading way too much data from the database and wondered if any of you has had experience with equal problems or an idea what costs so much memory.

谢谢!

推荐答案

Magento的PHP要求包括"Memory_limit不小于256Mb [sic] (最好是512)".

Magento's PHP requirements include "Memory_limit no less than 256Mb[sic] (preferably 512)".

是的,每个请求有很多内存,但这是以灵活性和功能为代价的.

Yes it's a lot of memory per request but that's the price of flexibility and features.

这篇关于这是Magento的正常记忆行为吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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