您的位置 首页 站长运营

Fatal error: Out of memory (allocated 6029312)解决方案

今天春哥的一个朋友反映:他在运行操作帝国CMS系统后台的时候,老是出现Fatal error: Out of memory (allocated 786432)提示 。春哥给大家翻…

今天春哥的一个朋友反映:他在运行操作帝国CMS系统后台的时候,老是出现Fatal error: Out of memory (allocated 786432)提示 。春哥给大家翻译过来:致命错误:内存不足。搞程序的大家都应该知道,这就是内存溢出问题。

错误提示:

Fatal error: Out of memory (allocated 1835008) (tried to allocate 24576 bytes) in E:xxxxlibrariescommon.lib.php on line 1868

致命错误:内存不足.jpg

春哥原因解析:

PHP5.2.3-win32这个版本有个非常严重的bug,那就是最大内存设置成1024M,但是PHP实际返回的只有2M,经常返回下面的错误:
PHP Fatal error: Out of memory (allocated 1048576) (tried to allocate 393216 bytes)
PHP Fatal error: Out of memory (allocated 786432) (tried to allocate 393216 bytes)
PHP Fatal error: Out of memory (allocated 1310720) (tried to allocate 393216 bytes)
这是官方的bug报告,该bug只出现于windows版本,linux版本没有这个bug。

春哥解决方法:
打开php.ini 修改memory_limit = 的这行
依照服务器配置进行调整
配置的内存使用大小修改后重启iis/apache
问题解决^^

本文来自网络,不代表24小时课堂在线立场,转载请注明出处:https://www.24ketang.cn/48759.html

为您推荐

返回顶部