MySQL似乎经常崩溃,我可以说每隔一个小时左右。
在这个使用MySQL的服务器上运行的唯一东西是我正在处理的一个Drupal安装,只有一个人在使用它,而且它实际上有三页左右--据我所知,这似乎是innoDB的内存问题?我不太擅长这些东西所以我不确定。
有指引吗?这是我的error.log的相关部分
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,还是我可以做些什么来解决这个问题?
发布于 2014-02-16 14:32:47
MySQL没有启动,因为它不能为InnoDB缓冲池分配128 M。
您必须设置更低的innodb_buffer_pool_size或限制Apache进程的数量,这样它们就不会消耗所有内存。我也有同样的问题,并在博客中描述了它。
https://serverfault.com/questions/575991
复制相似问题