php的Allowed memory size of 134217728 bytes exhausted问题
提示Allowed memory size of 134217728 bytes exhausted,出现这种错误的情况常见的有三种:
0:查询的数据量大。
1:数据量不大,但是php.ini配置的内存太小。
2:逻辑出现死循环。
解析:
134217728/1024/1024 = 128M
解决方案:
0:修改php.ini
memory_limit = 128
但是这种需要重启服务器,所以对于虚拟机有限制
1:通过ini_set函数修改配置选项值
// 升级256M、128M内存
ini_set('memory_limit','256M')
ini_set('memory_limit','128M')
// 不做限制
ini_set('memory_limit','-1')
php的Allowed memory size of 134217728 bytes exhausted问题的更多相关文章
- (转载)PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
		
(转载)http://blog.csdn.net/beyondlpf/article/details/7794028 Fatal error: Allowed memory size of 13421 ...
 - Allowed memory size of 134217728 bytes exhausted
		
错误信息: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65015808 bytes) 由于报错信息和数据库 ...
 - Allowed memory size of 134217728 bytes exhausted解决办法(php内存耗尽报错)【简记】
		
报错: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) i ...
 - php的Allowed memory size of 134217728 bytes exhausted问题解决办法
		
php的Allowed memory size of 134217728 bytes exhausted问题解决办法 报错: Fatal error: Allowed memory size of 1 ...
 - PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
		
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in Fa ...
 - Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2611816 bytes)
		
一段PHP程序执行报错: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261181 ...
 - Allowed memory size of 134217728 bytes exhausted (tried to allocate 2 bytes)
		
出现 Allowed memory size of 134217728 bytes exhausted (tried to allocate 2 bytes)时在php.ini文件中配置 memor ...
 - Allowed memory size of 134217728 bytes exhausted问题解决方法
		
Allowed memory size of 134217728 bytes exhausted问题解决方法 php默认内存限制是128M,所以需要修改php.ini文件. 查找到memory_lim ...
 - PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted 错误
		
php运行一段时间后,部分页面打不开,查看nginx日志里面一直在报PHP message: PHP Fatal error: Allowed memory size of 134217728 by ...
 
随机推荐
- Presto 学习
			
Presto 基础知识与概念学习可以参考这些博客: presto 0.166概述 https://www.cnblogs.com/sorco/p/7060166.html Presto学习-prest ...
 - JDK8的新特性
 - flask设置cookie,设置session,模拟用户认证、模拟管理后台admin、模拟用户logout
			
设置cookie HTTP协议是无状态的,在一次请求响应结束后,服务器不会留下关于客户端状态的信息.但是对于某些web程序来说,客户端的信息有必要被记住,比如用户的登录状态,这样就可以根据用户的状态来 ...
 - QThread详解
			
回顾Qt之线程(QThread),里面讲解了如何使用线程,但还有很多人留言没有看明白,那么今天我们来一起瞅瞅关于QThread管理线程的那些事儿... 一.线程管理 1.线程启动 void start ...
 - tft屏图像显示也成功完成
			
2010-04-30 14:18:00 tft屏图像显示也成功完成. 其实有了刷屏的经验,图像显示就很简单. void address_set(uint x1,uint y1,uint x2,uint ...
 - JDBC-day02
			
JDBC:数据库连接 java database connectivity ###properties 属性对象,用于读取*.properties属性配置文件中的数据 -为什么使用:之前写法是把数 ...
 - 洛谷 P1010 幂次方
			
做了好久,递归拆吧 #include<iostream>#include<cstdio>#include<cmath>using namespace std;int ...
 - js获取浏览器信息
			
function message() { txt = "<p>浏览器代码名: " + navigator.appCodeName + "</p>& ...
 - Python3 解析excel文件
			
Python3 解析读取excel文件 一.第三方库 import xlrd 二.代码示例 import xlrd ''' 读取Excel每个sheet的第一列和第二列的值,拼接成json串,写入文件 ...
 - redis 配置详解
			
# redis 配置文件示例 # 当你需要为某个配置项指定内存大小的时候,必须要带上单位, # 通常的格式就是 1k 5gb 4m 等酱紫: # # 1k => 1000 bytes # 1kb ...