Joomla-允许的内存大小为1073741824字节已用尽 [英] Joomla - Allowed memory size of 1073741824 bytes exhausted

查看:379
本文介绍了Joomla-允许的内存大小为1073741824字节已用尽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的joomla网站开始显示以下错误

My joomla website started to show following error

致命错误:允许的内存大小已用完1073741824字节(尝试分配78个字节)

我知道我们可以使用ini_set增加内存限制,但是我认为这不是解决此问题的正确方法.即使将内存限制设置为无限制(-1),我也会收到内部服务器错误.我刚被分配到此任务,所以我完全不知道该站点上的最近活动.我试图使用数据库禁用某些插件和模块.我所做的是,只需按id的降序从_modules_plugins中获取条目,然后将publish更改为0.但是什么都行不通.我遇到了同样的错误(严重错误:允许的内存...).我试图打开管理页面,该页面也没有加载.只是显示一个空白页.

I know we can increase the memory limit using ini_set, but I believe it is not the correct way to solve this. Even though, if I set the memory limit to unlimited (-1), I will get an Internal Server Error. I am completely unaware about the recent activities on this site, as I am newly assigned to this task. I tried to disable some plugins and modules using DB. What I did is, just fetch the entries from _modules and _plugins with descending order of id and change the publish to 0. But nothing works. I am getting the same error (Fatal error: Allowed memory...). I tried to open the admin page, that is also not loading. Just showing a blank page.

请帮助我解决此问题.我是joomla的新手

Please help me to fix this. I am new to joomla

推荐答案

我不认为您会收到针对此类问题的简洁答案,因为它的范围太广了.听起来好像有内存泄漏.参见:

I don't believe you're going to receive a concise answer for this type of problem as it is far too broad. It sounds like you have a memory leak. See:

  1. 如何查找哪个PHP脚本正在泄漏内存?
  2. 诊断内存泄漏-允许的内存大小已耗尽#字节
  1. How to find which PHP script is leaking memory?
  2. Diagnosing Memory Leaks - Allowed memory size of # bytes exhausted

不幸的是,很难找到导致内存泄漏的原因.上面的两个链接确实提供了一些有用的技巧,分别是调用memory_get_usage Xdebug 扩展名.

Unfortunately, finding the cause of a memory leak is seldom a simple task. The two links above do provide some useful tips, namely placing calls to memory_get_usage and also the Xdebug extension.

即使您不是Joomla的新手,也不熟悉代码库,也可能不会使解决此问题变得更加容易.

Even if you weren't new to Joomla and more familiar with the code base, it probably wouldn't make solving this problem any easier.

这篇关于Joomla-允许的内存大小为1073741824字节已用尽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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