Allowed memory size of 149946368 bytes exhausted (tried to allocate 32640 bytes)
来源:互联网 发布:热血屠龙灵兽进阶数据 编辑:程序博客网 时间:2024/06/05 21:15
- 问题:PHP Fatal error: Allowed memory size of 149946368 bytes exhausted (tried to allocate 32640 bytes)
- 原因:php限制了该脚本的能申请到的内存;
解决办法:
修改php.ini文件中memory_limit, 并重启php-fpm;
在脚本中添加ini_set(‘memory_limit’, ‘-1’);
在脚本中可使用memory_get_usage()函数查看分配给 脚本的内存量,单位是字节。
0 0
- Allowed memory size of 149946368 bytes exhausted (tried to allocate 32640 bytes)
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 775920 bytes) 问题解决
- Allowed memory size of 33554432 bytes exhausted (tried to allocate 43148176 bytes) in php
- Allowed memory size of 33554432 bytes exhausted (tried to allocate 16 bytes)
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 775920 bytes)
- Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 62 bytes) in
- Allowed memory size of aaaaa bytes exhausted (tried to allocate bbbbb bytes)
- 问题解决Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 38218371 bytes)
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2611816 bytes) 今天要
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 393216 byt
- magento PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate xxxxx)
- php内存不够用,出现Allowed memory size of 8388608 bytes exhausted (tried to allocate 1298358 bytes)
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- php内存不够用,出现Allowed memory size of 8388608 bytes exhausted (tried to allocate 1298358 bytes)
- Fatal error: Allowed php错误提示memory size of 8388608 bytes exhausted (tried to allocate 58368 bytes) i
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- Jackson参考笔记(3)
- Could not get the value for parameter encoding for plugin execution default-resources Plugin
- MakeKey问题
- 开启前端开发
- Mysql你必须知道的查询语句
- Allowed memory size of 149946368 bytes exhausted (tried to allocate 32640 bytes)
- MyEclipse2016stable1.0安装/crack教程
- 值得推荐的C/C++框架和库
- 微信支付相关-Spring RestTemplate和javax SSLContext
- 算法--选择排序
- java WebSocketClient重连机制
- Socket编程问题
- quartz定时任务
- 排序算法C++ && Python实现---直接插入排序