首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >InnoDB:致命错误:无法为缓冲池分配内存

问InnoDB:致命错误:无法为缓冲池分配内存
EN

Server Fault用户
提问于 2014-02-16 14:24:14
回答 1查看 3.7K关注 0票数 4

MySQL似乎经常崩溃,我可以说每隔一个小时左右。

在这个使用MySQL的服务器上运行的唯一东西是我正在处理的一个Drupal安装,只有一个人在使用它,而且它实际上有三页左右--据我所知,这似乎是innoDB的内存问题?我不太擅长这些东西所以我不确定。

有指引吗?这是我的error.log的相关部分

代码语言:javascript
复制
140216 14:20:01 [Note] Plugin 'FEDERATED' is disabled.
140216 14:20:01 InnoDB: The InnoDB memory heap is disabled
140216 14:20:01 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140216 14:20:01 InnoDB: Compressed tables use zlib 1.2.3.4
140216 14:20:01 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(135987200 bytes) failed; errno 12
140216 14:20:01 InnoDB: Completed initialization of buffer pool
140216 14:20:01 InnoDB: Fatal error: cannot allocate memory for the buffer pool
140216 14:20:01 [ERROR] Plugin 'InnoDB' init function returned error.
140216 14:20:01 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140216 14:20:01 [ERROR] Unknown/unsupported storage engine: InnoDB
140216 14:20:01 [ERROR] Aborting

140216 14:20:01 [Note] /usr/sbin/mysqld: Shutdown complete

140216 14:20:02 [Note] Plugin 'FEDERATED' is disabled.
140216 14:20:02 InnoDB: The InnoDB memory heap is disabled
140216 14:20:02 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140216 14:20:02 InnoDB: Compressed tables use zlib 1.2.3.4
140216 14:20:02 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(135987200 bytes) failed; errno 12
140216 14:20:02 InnoDB: Completed initialization of buffer pool
140216 14:20:02 InnoDB: Fatal error: cannot allocate memory for the buffer pool
140216 14:20:02 [ERROR] Plugin 'InnoDB' init function returned error.
140216 14:20:02 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140216 14:20:02 [ERROR] Unknown/unsupported storage engine: InnoDB
140216 14:20:02 [ERROR] Aborting

140216 14:20:02 [Note] /usr/sbin/mysqld: Shutdown complete

编辑

服务器是规格最低的DigitalOcean液滴,内存512 is。这个特殊的液滴正在运行NodeJS、MySQL和Apache。有一个低流量静态网站,一个幽灵博客和这个Drupal网站,我正在开发。

我应该升级RAM,还是我可以做些什么来解决这个问题?

EN

回答 1

Server Fault用户

发布于 2014-02-16 14:32:47

MySQL没有启动,因为它不能为InnoDB缓冲池分配128 M。

您必须设置更低的innodb_buffer_pool_size或限制Apache进程的数量,这样它们就不会消耗所有内存。我也有同样的问题,并在博客中描述了它。

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

https://serverfault.com/questions/575991

复制
相关文章

相似问题

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