VPS侦探论坛

 找回密码
 注册
查看: 3267|回复: 4

mysql几天挂一次 InnoDB: Fatal error: cannot allocate memory for the buffer pool

[复制链接]
发表于 2017-9-27 22:26:40 | 显示全部楼层 |阅读模式

mysql几天挂一次,不知道什么原因磁盘没满。mysql err日志已上传  麻烦军哥帮忙看下
170921 12:40:07 InnoDB: Initializing buffer pool, size = 512.0M
InnoDB: mmap(549453824 bytes) failed; errno 12
170921 12:40:07 InnoDB: Completed initialization of buffer pool
170921 12:40:07 InnoDB: Fatal error: cannot allocate memory for the buffer pool
170921 12:40:07 [ERROR] Plugin 'InnoDB' init function returned error.
170921 12:40:07 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
170921 12:40:07 [ERROR] Unknown/unsupported storage engine: InnoDB
170921 12:40:07 [ERROR] Aborting

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-9-28 10:43:44 | 显示全部楼层


170921 12:40:07 InnoDB: Initializing buffer pool, size = 512.0M
InnoDB: mmap(549453824 bytes) failed; errno 12
170921 12:40:07 InnoDB: Completed initialization of buffer pool
170921 12:40:07 InnoDB: Fatal error: cannot allocate memory for the buffer pool
170921 12:40:07 [ERROR] Plugin 'InnoDB' init function returned error.
170921 12:40:07 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
170921 12:40:07 [ERROR] Unknown/unsupported storage engine: InnoDB
170921 12:40:07 [ERROR] Aborting
按提示是无法分配内存,也就是内存不够用了,可能你其他程序占用较多
可以先调整/etc/my.conf 中 innodb_buffer_pool_size 调小些再观察看看,如果vps/服务器上没swap的话,再添加上个swap试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-10-14 22:53:38 | 显示全部楼层

回复 2# 的帖子


已经改小 , 然后几个小时就挂了!!!只有mysql崩溃,内存是够用的啊
最新日志见附件!


[ 本帖最后由 jasonstar 于 2017-10-14 22:54 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-10-14 22:59:21 | 显示全部楼层

回复 2# 的帖子




https://bbs.vpser.net/thread-16630-1-1.html
我跟这个人的错误日志看起来是一样的 好奇怪啊。


我的my.cnf 也上传了 见附件
我的lnmp版本是1.3

[ 本帖最后由 jasonstar 于 2017-10-14 23:04 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-10-15 11:43:06 | 显示全部楼层

回复 3# 的帖子


你这不是崩溃时的内存占用情况没法说明崩溃时内存时够用的

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-25 05:29 , Processed in 0.027296 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表