ECS上站点数据库链接不可用

今天突然发现两个网站都没法访问了,网站用的是阿里云的ECS,之前好像也出现过一次。然后登上去检查了一下访问日志,程序文件有没有变更。。都没有发现什么问题。然后尝试重启Mysql

[code]mysql dead but subsys locked[/code]

查看日志以后发现( 22:12:50是我手动重启了):

[code]

161208 16:35:05 mysqld_safe Number of processes running now: 0
161208 16:35:05 mysqld_safe mysqld restarted
161208 16:35:07 [Note] Plugin ‘FEDERATED’ is disabled.
161208 16:35:07 InnoDB: The InnoDB memory heap is disabled
161208 16:35:07 InnoDB: Mutexes and rw_locks use GCC atomic builtins
161208 16:35:07 InnoDB: Compressed tables use zlib 1.2.3
161208 16:35:07 InnoDB: Using Linux native AIO
161208 16:35:07 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
161208 16:35:07 InnoDB: Completed initialization of buffer pool
161208 16:35:07 InnoDB: Fatal error: cannot allocate memory for the buffer pool
161208 16:35:07 [ERROR] Plugin ‘InnoDB’ init function returned error.
161208 16:35:07 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
161208 16:35:07 [ERROR] Unknown/unsupported storage engine: InnoDB
161208 16:35:07 [ERROR] Aborting
161208 16:35:07 [Note] /usr/libexec/mysqld: Shutdown complete
161208 16:35:08 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
161208 22:12:50 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql

[/code]

问题已经提交论坛求助,后续更新解决方案及问题原因。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据