mysql 莫名其妙的会自动停止。

2016-04-18 18:25:54 +08:00
 Artoria
Version: '5.1.63' socket: '/tmp/mysql.sock' port: 3306 Source distribution
160313 07:13:20 mysqld_safe Number of processes running now: 0
160313 07:13:20 mysqld_safe mysqld restarted
160313 7:13:25 [Note] Event Scheduler: Loaded 0 events
160313 7:13:25 [Note] /www/wdlinux/mysql-5.1.63/libexec/mysqld: ready for connections.
Version: '5.1.63' socket: '/tmp/mysql.sock' port: 3306 Source distribution
160313 07:13:41 mysqld_safe Number of processes running now: 0
160313 07:13:42 mysqld_safe mysqld restarted
160313 7:13:42 [Note] Event Scheduler: Loaded 0 events
160313 7:13:42 [Note] /www/wdlinux/mysql-5.1.63/libexec/mysqld: ready for connections.
Version: '5.1.63' socket: '/tmp/mysql.sock' port: 3306 Source distribution
160313 13:27:45 mysqld_safe Number of processes running now: 0
160313 13:27:46 mysqld_safe mysqld restarted
160313 13:27:49 [Note] Event Scheduler: Loaded 0 events
160313 13:27:49 [Note] /www/wdlinux/mysql-5.1.63/libexec/mysqld: ready for connections.
Version: '5.1.63' socket: '/tmp/mysql.sock' port: 3306 Source distribution
160313 13:28:02 mysqld_safe Number of processes running now: 0
160313 13:28:02 mysqld_safe mysqld restarted
160313 13:28:04 [Note] Event Scheduler: Loaded 0 events
160313 13:28:04 [Note] /www/wdlinux/mysql-5.1.63/libexec/mysqld: ready for connections.
Version: '5.1.63' socket: '/tmp/mysql.sock' port: 3306 Source distribution
160314 01:26:50 mysqld_safe Number of processes running now: 0
160314 01:26:51 mysqld_safe mysqld restarted
160314 1:27:00 [Note] Event Scheduler: Loaded 0 events
160314 1:27:00 [Note] /www/wdlinux/mysql-5.1.63/libexec/mysqld: ready for connections.
Version: '5.1.63' socket: '/tmp/mysql.sock' port: 3306 Source distribution
160314 01:27:10 mysqld_safe Number of processes running now: 0
160314 01:27:12 mysqld_safe mysqld restarted

上面的是停止的那几天的 err

好像没什么问题?
6557 次点击
所在节点    MySQL
10 条回复
huigeer
2016-04-18 18:30:35 +08:00
内存够么, 是不是 oom 被系统 kill 了?
Artoria
2016-04-18 18:43:43 +08:00
@huigeer 内存是够的。 不论是 cpu 还是内存占用都非常小。但从上面的时间过后每隔 3 天就会挂掉。毫无头绪
holyghost
2016-04-18 18:52:41 +08:00
上 supervisor ,看看是不是收到什么莫名其妙的信号了。
caixiexin
2016-04-18 19:11:50 +08:00
机器的内存多少,小于 512 内存机器跑 innodb 引擎的话可能会有问题
Artoria
2016-04-18 19:17:38 +08:00
@caixiexin 2G 内存呀
billlee
2016-04-18 22:09:30 +08:00
先开 coredump 看看吧
alect
2016-04-18 22:11:35 +08:00
以目前的经验来看,绝大数原因是因为内存不够用。。。
(曾经多次在小内存 VPS 上因为内存小编译 mysql 失败的路过
lovedboy
2016-04-19 13:02:19 +08:00
感觉是 oom
huigeer
2016-04-20 16:35:15 +08:00
看一下 mysql 的 error log 或者系统的 log
alsotang
2016-08-03 17:05:01 +08:00
less /var/log/messages

看看是不是 oom

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/272047

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX