mysql 是装在云服务器,一直都正常运行,昨天下午四点有几百号人同时连一个网页(这个网页和后台任务并不需要连 MYSQL )并运行一个后台 C++任务,然后今天发现昨天下午 mysql 挂了,日志如下,这是因为服务器的 CPU 和内存占用过高把 MYSQL 给挤的挂掉了吗?然后根据下面的日志显示它又没有重启成功?
但为什么其他的进程没有被挤掉呢,比如 REDIS 等都还是正常的
170712 17:29:27 [Warning] IP address '140.205.225.196' could not be resolved: Name or service not known
170713 2:10:41 [Warning] IP address '158.85.81.114' has been resolved to the host name '72.51.559e.ip4.static.sl-reverse.com', which resembles IPv4-address itself.
170713 12:25:56 [Warning] IP address '140.205.225.193' could not be resolved: Name or service not known
170713 17:13:46 [Warning] IP address '113.96.132.212' could not be resolved: Name or service not known
170714 12:49:16 [Warning] IP address '140.205.225.203' could not be resolved: Name or service not known
170715 15:31:38 [Warning] IP address '140.205.225.191' could not be resolved: Name or service not known
170716 16:37:19 mysqld_safe Number of processes running now: 0
170716 16:37:19 mysqld_safe mysqld restarted
170716 16:37:21 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.45) starting as process 25133 ...
170716 16:37:21 [Note] Plugin 'FEDERATED' is disabled.
170716 16:37:21 InnoDB: The InnoDB memory heap is disabled
170716 16:37:21 InnoDB: Mutexes and rw_locks use GCC atomic builtins
170716 16:37:21 InnoDB: Compressed tables use zlib 1.2.3
170716 16:37:21 InnoDB: Using Linux native AIO
170716 16:37:21 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
170716 16:37:21 InnoDB: Completed initialization of buffer pool
170716 16:37:21 InnoDB: Fatal error: cannot allocate memory for the buffer pool
170716 16:37:21 [ERROR] Plugin 'InnoDB' init function returned error.
170716 16:37:21 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
170716 16:37:21 [ERROR] Unknown/unsupported storage engine: InnoDB
170716 16:37:21 [ERROR] Aborting
170716 16:37:21 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
170716 16:37:21 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
但为什么其他的进程没有被挤掉呢,比如 REDIS 等都还是正常的
170712 17:29:27 [Warning] IP address '140.205.225.196' could not be resolved: Name or service not known
170713 2:10:41 [Warning] IP address '158.85.81.114' has been resolved to the host name '72.51.559e.ip4.static.sl-reverse.com', which resembles IPv4-address itself.
170713 12:25:56 [Warning] IP address '140.205.225.193' could not be resolved: Name or service not known
170713 17:13:46 [Warning] IP address '113.96.132.212' could not be resolved: Name or service not known
170714 12:49:16 [Warning] IP address '140.205.225.203' could not be resolved: Name or service not known
170715 15:31:38 [Warning] IP address '140.205.225.191' could not be resolved: Name or service not known
170716 16:37:19 mysqld_safe Number of processes running now: 0
170716 16:37:19 mysqld_safe mysqld restarted
170716 16:37:21 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.45) starting as process 25133 ...
170716 16:37:21 [Note] Plugin 'FEDERATED' is disabled.
170716 16:37:21 InnoDB: The InnoDB memory heap is disabled
170716 16:37:21 InnoDB: Mutexes and rw_locks use GCC atomic builtins
170716 16:37:21 InnoDB: Compressed tables use zlib 1.2.3
170716 16:37:21 InnoDB: Using Linux native AIO
170716 16:37:21 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
170716 16:37:21 InnoDB: Completed initialization of buffer pool
170716 16:37:21 InnoDB: Fatal error: cannot allocate memory for the buffer pool
170716 16:37:21 [ERROR] Plugin 'InnoDB' init function returned error.
170716 16:37:21 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
170716 16:37:21 [ERROR] Unknown/unsupported storage engine: InnoDB
170716 16:37:21 [ERROR] Aborting
170716 16:37:21 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
170716 16:37:21 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended