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
编辑
该服务器是具有512MB RAM的最低规格DigitalOcean液滴。 这个特殊的Droplet运行NodeJS,MySQL和Apache。 有一个低stream量的静态网站,Ghost博客和我正在开发的这个Drupal站点。
我应该只是升级内存,或者我可以做些什么来解决这个问题?
MySQL不能启动,因为它不能为InnoDB缓冲池分配128M。
您必须设置较低的innodb_buffer_pool_size或限制Apache进程的数量,以便它们不消耗所有内存。 我有同样的问题,并在博客中描述