Allowed memory size of xxx bytes
来源:互联网 发布:夏茗悠扒皮知乎 编辑:程序博客网 时间:2024/05/21 22:47
经常有的ecshop会出现内存不足用完的情况
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /home1/xxx/public_html/includes/cls_rss.php on line 1590
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 24 bytes) in /home1/xxx/public_html/includes/lib_common.php on line 1494
,其实有些时候我们可以这样解决:
方法一:
可以把includes的init.php中的
/* 初始化设置 */
@ini_set('memory_limit', '64M');
改大一点,就不会出现你这种问题了
可以改成
@ini_set('memory_limit', '128M');
或
@ini_set('memory_limit', '256M');
或
@ini_set('memory_limit', '512M');
方法二:
直接修改php.ini,加大memory_limit的设置
memory_limit = 1024M
重启Apache,搞定
- Allowed memory size of xxx bytes
- 解决PHP之 Allowed memory size of xxx bytes exhausted
- 解决PHP之 Allowed memory size of xxx bytes exhausted
- 解决PHP之 Allowed memory size of xxx bytes exhausted
- Allowed memory size of 8388608 bytes exhausted
- Allowed memory size of 134217728 bytes exhausted
- LAMP 优化 之三 php Allowed memory size of xxx bytes exhausted
- Php Fatal error: Allowed memory size of xxx bytes exhausted 的解决办法
- Fatal error: Allowed memory size of 8388608 bytes exhausted
- Fatal error: Allowed memory size of 8388608 bytes exhausted
- Fatal error: Allowed memory size of 20971520 bytes exhausted
- Fatal error: Allowed memory size of 8388608 bytes exhausted解决方法
- Fatal error: Allowed memory size of *** bytes exhausted
- Fatal error: Allowed memory size of 8388608 bytes exhausted
- Fatal error: Allowed memory size of 33554432 bytes exhausted
- Fatal error: Allowed memory size of 8388608 bytes exhausted解决方法
- PHP: Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted
- php的Allowed memory size of 134217728 bytes exhausted问题
- ZOJ 1636 Evaluate Matrix Sum
- C语言字节对齐
- C++嵌入式开发
- java.lang.IllegalStateException The specified child already has a parent. You must call removeView()
- OpenCV中cvcontours上的所有点集合
- Allowed memory size of xxx bytes
- 常用资源备忘
- 关于Struts 标签:datetimepicker
- jsp自定义标签
- 虚拟机linux里上网nat
- 对于 EntityDataSource,必须为每个 Parameter 指定 Type 或 DbType (但不能同时指定)
- 优雅使用ubuntu指南
- js校验(wallet)
- 静态路由配置