Chinaunix

标题: mysql無端端自動重啟 [打印本页]

作者: chinaunix__user    时间: 2010-12-05 22:12
标题: mysql無端端自動重啟
我的MYSQL好像無端端 自動重啟?
Version: '5.0.77-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution
101205 15:58:37  mysqld started
InnoDB: Log scan progressed past the checkpoint lsn 6 1841396097
101205 15:58:39  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 6 1841396852
101205 15:59:02  InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
InnoDB: Last MySQL binlog file position 0 89336377, file name ./mysql-bin.000042
101205 15:59:02  InnoDB: Started; log sequence number 6 1841396852
101205 15:59:03 [Note] Recovering after a crash using mysql-bin
101205 15:59:09 [Note] Starting crash recovery...
101205 15:59:09 [Note] Crash recovery finished.
101205 15:59:10 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.77-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution



從監控圖像上看是突然CACHE釋放了。

請哪位大俠能解答一下為什么嗎?
作者: bitterness    时间: 2010-12-08 15:31
你需要监控下机器当时的负载或是内存和CPU使用情况
作者: ruochen    时间: 2010-12-08 22:56
之前的日志也给的太少了点吧

看看error日志
作者: lingg2010    时间: 2010-12-10 13:47
我以前碰过同样现象,最后查出来是有几个TABLE坏了,修复TABLE后解决
作者: ruochen    时间: 2010-12-10 19:11
我以前碰过同样现象,最后查出来是有几个TABLE坏了,修复TABLE后解决
lingg2010 发表于 2010-12-10 13:47



    这个日志中都会提示的
作者: chinaunix__user    时间: 2010-12-13 00:05
回复 2# bitterness


    CPU不超过10%,内存4G,但是使用量不超过1G,因为每天执行自动备份,3点和15点(有可能锁表,但之前运行进一年都没有事情的,近排换了机器就出问题了,有点怀疑是机器的故障,比如电源、主板稳定性方面的)。  所以CACHE很高。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2