首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Mysqld自己关闭

Mysqld自己关闭
EN

Server Fault用户
提问于 2014-06-12 08:08:37
回答 1查看 1.1K关注 0票数 0

我正在运行一个Wordpress博客,它的流量达到中等水平。它是托管在一个UbuntuServer2GB内存2核心处理器40 2GB的SSD磁盘,3TB传输。

问题是,MySQL在一两个小时后就会自动关闭。每次这种情况发生时,我都必须重新启动mysql。我查了一下日志,这就是我发现的

代码语言:javascript
复制
140612  6:48:14 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
140612  6:48:14 [Note] Plugin 'FEDERATED' is disabled.
140612  6:48:14 InnoDB: The InnoDB memory heap is disabled
140612  6:48:14 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140612  6:48:14 InnoDB: Compressed tables use zlib 1.2.3.4
140612  6:48:14 InnoDB: Initializing buffer pool, size = 1.4G
InnoDB: mmap(1502412800 bytes) failed; errno 12
140612  6:48:14 InnoDB: Completed initialization of buffer pool
140612  6:48:14 InnoDB: Fatal error: cannot allocate memory for the buffer pool
140612  6:48:14 [ERROR] Plugin 'InnoDB' init function returned error.
140612  6:48:14 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140612  6:48:14 [ERROR] Unknown/unsupported storage engine: InnoDB
140612  6:48:14 [ERROR] Aborting

140612  6:48:14 [Note] /usr/sbin/mysqld: Shutdown complete

从这条线判断:

代码语言:javascript
复制
140612  6:48:14 InnoDB: Fatal error: cannot allocate memory for the buffer pool

我怀疑这是一个记忆问题,但在我结束发言之前,我想听听在座各位专家的意见。

这是缺乏记忆的问题吗?您认为max_connectionsmy.cnf中的价值(目前为100)是一个潜在的原因,需要增加吗?

蒂娅。

EN

回答 1

Server Fault用户

发布于 2014-06-12 08:20:45

看起来您的系统内存不足,错误号12是报告ENOMEM的内核。您应该检查您的其他日志,看看是否有其他相关的消息可以帮助您诊断这一点。此外,安装一些监察系统,使耀能收集有关系统的资料,也是有用的。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/604553

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档