Magento Forum

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4400 bytes)
 
design160
Jr. Member
 
Total Posts:  1
Joined:  2009-06-11
 

升级了magento测试网站到(ver. 1.3.2.4),但是产品页或购物页均出现如下错误:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes)
请问各位有遇到过吗?怎样解决呢?
谢谢了!

 
Magento Community Magento Community
Magento Community
Magento Community
 
kay
Sr. Member
 
Total Posts:  223
Joined:  2008-01-13
Germany 德国,China 中国
 

你的内存是多少?

 
Magento Community Magento Community
Magento Community
Magento Community
 
CosmoCommerce
Sr. Member
 
Avatar
Total Posts:  87
Joined:  2008-09-05
Shanghai
 

内存耗光了.你可以清空缓存,清空session,这几个都在var目录下

然后调整.htaccess里面内存分配的大小.

如果这些都做过了,很可能你的服务器在这几个页面消耗了大量运算,可以做一次编译,然后后台启用所有的缓存看看.

 
Magento Community Magento Community
Magento Community
Magento Community
 
urgent0072
Jr. Member
 
Total Posts:  3
Joined:  2009-07-05
 

我是安装演示数据 然后后台管理产品分类 就报错
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1966080 bytes) in /home/lcm28/public_html/nebg.net/lib/Zend/Date.php on line 2379

Image Attachments
111111.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
CosmoCommerce
Sr. Member
 
Avatar
Total Posts:  87
Joined:  2008-09-05
Shanghai
 

共享空间跑magento有点吃力,不定时这样比较正常,因为你被分配的内存比较少。
主要.htaccess文件里面的内存设置高一些

 
Magento Community Magento Community
Magento Community
Magento Community
 
urgent0072
Jr. Member
 
Total Posts:  3
Joined:  2009-07-05
 

谢谢cosmo
.htaccess这个是要修改根目录的呢还是哪个/?应该修改什么地方呢 谢谢

 
Magento Community Magento Community
Magento Community
Magento Community
 
CosmoCommerce
Sr. Member
 
Avatar
Total Posts:  87
Joined:  2008-09-05
Shanghai
 

php_value memory_limit 128M

改这个内存的限制,改大一些。

后面是php执行时间,不会对你的问题有影响。主要是其他地方会有影响,单位是秒
php_value max_execution_time 18000

 
Magento Community Magento Community
Magento Community
Magento Community
 
farlee
Jr. Member
 
Total Posts:  12
Joined:  2010-09-02
 

我也碰到过类似问题

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top