我正在运行一个Wordpress博客,它的流量达到中等水平。它是托管在一个UbuntuServer2GB内存2核心处理器40 2GB的SSD磁盘,3TB传输。
问题是,MySQL在一两个小时后就会自动关闭。每次这种情况发生时,我都必须重新启动mysql。我查了一下日志,这就是我发现的
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从这条线判断:
140612 6:48:14 InnoDB: Fatal error: cannot allocate memory for the buffer pool我怀疑这是一个记忆问题,但在我结束发言之前,我想听听在座各位专家的意见。
这是缺乏记忆的问题吗?您认为max_connections在my.cnf中的价值(目前为100)是一个潜在的原因,需要增加吗?
蒂娅。
发布于 2014-06-12 08:20:45
看起来您的系统内存不足,错误号12是报告ENOMEM的内核。您应该检查您的其他日志,看看是否有其他相关的消息可以帮助您诊断这一点。此外,安装一些监察系统,使耀能收集有关系统的资料,也是有用的。
https://serverfault.com/questions/604553
复制相似问题