[ERROR] InnoDB: Cannot allocate memory for the buffer pool

栏目: 数据库 · 发布时间: 5年前

内容简介:服务器开启了一个任务,比较消耗资源,而服务器上的mysql意外宕机了,error日志描述如山所示:使用free  -g查看到当前系统可用内存只有6g了
2018-05-07 01:17:43 3327 [Note] Plugin 'FEDERATED' is disabled.
2018-05-07 01:17:43 7f4912cf4740 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2018-05-07 01:17:43 3327 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-05-07 01:17:43 3327 [Note] InnoDB: The InnoDB memory heap is disabled
2018-05-07 01:17:43 3327 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-05-07 01:17:43 3327 [Note] InnoDB: Memory barrier is not used
2018-05-07 01:17:43 3327 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-05-07 01:17:43 3327 [Note] InnoDB: Using Linux native AIO
2018-05-07 01:17:43 3327 [Note] InnoDB: Using CPU crc32 instructions
2018-05-07 01:17:43 3327 [Note] InnoDB: Initializing buffer pool, size = 80.0G
InnoDB: mmap(10989076480 bytes) failed; errno 12
2018-05-07 01:17:43 3327 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2018-05-07 01:17:43 3327 [ERROR] Plugin 'InnoDB' init function returned error.
2018-05-07 01:17:43 3327 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2018-05-07 01:17:43 3327 [ERROR] Unknown/unsupported storage engine: InnoDB
2018-05-07 01:17:43 3327 [ERROR] Aborting

服务器开启了一个任务,比较消耗资源,而服务器上的 mysql 意外宕机了,error日志描述如山所示:

[ERROR] InnoDB: Cannot allocate memory for the buffer pool

使用free  -g查看到当前系统可用内存只有6g了

[ERROR] InnoDB: Cannot allocate memory for the buffer pool

而检查my.cnf配置文件,里面的buffer_pool是

innodb_buffer_pool_size=64G

估计当前可用内存不够了,所以down机了,开启的任务不好停止,把innodb_buffer_pool_size的配置改成1G,重启下mysql服务,问题解决。


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

我用微软改变世界

我用微软改变世界

保罗·艾伦 / 吴果锦 / 浙江人民出版社 / 2012-3 / 46.00元

《我用微软改变世界(微软联合创始人保罗•艾伦回忆录)》内容简介:1975年,两个从大学退学的男孩夜以继日地设计一款软件。其中一个男孩就是后来的世界首富比尔盖茨,而另外一个则作为盖茨背后的男人,一直生活在盖茨的阴影里,其实,他的人生经历远比盖茨更为传奇和丰富。 16岁,与比尔盖茨在顶级名校湖畔中学相遇,成为最佳拍档,无数趣事,无数闹腾,高呼“处男万岁”还不够,还得意扬扬把这话刻在碑上留给学弟们......一起来看看 《我用微软改变世界》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具