PhpMyAdmin |致命错误:在行0上的“未知"中,已用尽的内存大小为134217728字节(试图分配xxxxxx字节) [英] PhpMyAdmin | Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate xxxxxx bytes) in Unknown on line 0

查看:249
本文介绍了PhpMyAdmin |致命错误:在行0上的“未知"中,已用尽的内存大小为134217728字节(试图分配xxxxxx字节)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找到导致此错误的原因,但我失败了.我已经在服务器上安装了PhpMyAdmin,现在在每个页面的页脚中都出现此错误:

I'm tying to find the cause of this error but I'm failing. I've have installed PhpMyAdmin on my server and right now on the footer of every page I'm getting this error:

致命错误:在第0行的未知"中,已用完的内存大小为134217728字节(尝试分配10934248字节)

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10934248 bytes) in Unknown on line 0

如您所见,我已经尝试过将memory_limit升级(从2MB升级到128MB),但是仍然出现此错误.现在,每次我登录PhpMyAdmin控制台时,即使没有任何操作,它也会出现.你有什么建议吗?

As you can see I've tried di upgrade the memory_limit (from 2MB to 128MB) but I still getting this error. Right now it appears every time I login in PhpMyAdmin console, also if I don't do any opertation. Do you have any suggestion?

我尝试遵循在网上找到的一些答案,但是似乎没有人可以解决该问题.同样,我找不到引发错误的文件,因为它是未知",而且我也不明白是谁在请求这么大的内存.

I've tried to follow some answer that I find on the web, but no one seems to resolve the problem. Also I can't find the file that throw the error becasue it's "Unknow" and I can't understand who is asking for such quantity of memory.

推荐答案

我意识到这是一个老问题,但是今天我在运行Linode虚拟服务器的Apache上也遇到了同样的问题.就我而言,解决方案只是启用Zend Opcache .由于"/etc/php5/apache2/conf.d/"目录中的一个ini文件中的错误,该功能已被禁用.

I realize this is an old question, but I started having the same issue today on Apache running on a Linode virtual server. In my case, the solution was simply to enable Zend Opcache. It was disabled due to an error in one of the ini files in '/etc/php5/apache2/conf.d/' directory.

我遇到了间歇性错误,大多数时候页面和图像都可以正常加载,但有时会失败.图片将被破坏,而不是看到页面,我会收到连接错误".

I was getting intermittent errors, where most of the time pages and images would load just fine, but once in a while they would fail. Images would be broken and instead of seeing a page I would get "connection error".

这些是我在Apache的error.log文件中看到的一些其他错误:

These are some additional errors I was seeing in the Apache's error.log file:

[core:notice] [pid 8186] AH00052: child pid 9008 exit signal Segmentation fault (11)
[core:notice] [pid 8186] AH00052: child pid 9007 exit signal Aborted (6)
*** Error in `/usr/sbin/apache2': free(): invalid pointer: 0x00007f56840b63c0 ***

当然是臭名昭著的

[:error] [pid 8829] [client nnn.nnn.nnn.n:24471] PHP Fatal error:
  Allowed memory size of 134217728 bytes exhausted (tried to 
  allocate 94008222532912 bytes) in Unknown on line 0, referer:
  https://www.mysiteurlhere.com/node/page

启用zend opcache后,error.log中没有更多错误,一切正常.

After enabling zend opcache, there are no more errors in error.log, and everything works as it should.

这篇关于PhpMyAdmin |致命错误:在行0上的“未知"中,已用尽的内存大小为134217728字节(试图分配xxxxxx字节)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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