致命错误:允许内存大小为134217728字节用尽(试图分配87字节) [英] Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 87 bytes)

查看:1090
本文介绍了致命错误:允许内存大小为134217728字节用尽(试图分配87字节)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我登录到我的网络应用程序时,它显示一个错误,如:

When I login to my web application it shows an error like:


致命错误:允许内存大小134217728字节耗尽以分配87个字节),位于第775行上的/gt/2.ps.fo/home/hft/domains/console.fo.spalgo.com/public_html/cake/libs/model/datasources/dbo/dbo_mysql.php

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 87 bytes) in /gt/2.ps.fo/home/hft/domains/console.fo.spalgo.com/public_html/cake/libs/model/datasources/dbo/dbo_mysql.php on line 775

有没有解决方案来解决这个问题?为什么会收到此错误?

Is there any solution to solve this problem? Why do I get this error?

推荐答案

这听起来像你分配了比PHP更多的内存将允许。按照链接页面上的说明编辑您网站中的 memory_limit 设置 php.ini

That sounds like you've allocated more memory than PHP will allow. Edit the memory_limit setting in your site php.ini configuration as described on the linked page.

另一种可能性(不太可能)是您已为用户或组打开了 setrlimit(2)资源限制。检查 /etc/security/limits.conf 可能为您的Web服务器设置的限制,以及任何初始化脚本启动您的服务器环境和PHP解释器环境。

Another possibility (less likely) is that you've hit the setrlimit(2) resource limits for your user or group. Check /etc/security/limits.conf for limits that might be set for your web server, along with whatever initialization scripts start your server environment and PHP interpreter environment.

这篇关于致命错误:允许内存大小为134217728字节用尽(试图分配87字节)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆