蓝森林首页 | 返回主页 | 本站地图 | 站内搜索 | 联系信箱 |
 您目前的位置:首页 > 自由软件 > 技术交流 > 数 据 库


    

蓝森林 http://www.lslnet.com 2006年8月26日 15:18


求助:我的mysql出问题了,请高手帮忙看看

小弟是新手,我的mysql数据库最近出问题了,用的是RH Linux9+mysql Ver 12.22 Distrib 4.0.20, for pc-linux (i686),最近数据库老是无故宕掉,具体现象为直接telnet上去select某一个表的时候就处于死机状态,查不出来。开始以为是表结构问题,但是每次的故障并不是发生在同一个表上。下面是出问题时用top命令看到的信息:
15:32:52  up 1 day,  3:53,  7 users,  load average: 1.01, 1.01, 1.00
83 processes: 81 sleeping, 2 running, 0 zombie, 0 stopped
[color=red]CPU states: 100.0%[/color] user   0.0% system   0.0% nice   0.0% iowait   0.0% idle
Mem:   247184k av,  242200k used,    4984k free,       0k shrd,   97648k buff
                    168772k actv,       0k in_d,    4316k in_c
Swap:  522072k av,    6968k used,  515104k free                   55496k cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT [color=red]%CPU [/color]%MEM   TIME CPU COMMAND
  906 mysql     15   0 16968  16M  1512 S    [color=red]99.9[/color]  6.7 586:30   0[color=red] mysqld[/color]
    1 root      15   0   104   76    56 S     0.0  0.0   0:04   0 init
    2 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 keventd
    3 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kapmd
    4 root      34  19     0    0     0 SWN   0.0  0.0   0:00   0 ksoftirqd_CPU0
    9 root      25   0     0    0     0 SW    0.0  0.0   0:00   0 bdflush
    5 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kswapd
   [color=red] 6 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kscand/DMA
    7 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kscand/Normal
    8 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kscand/HighMem[/color]   10 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kupdated
   11 root      25   0     0    0     0 SW    0.0  0.0   0:00   0 mdrecoveryd
   [color=red]15 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kjournald[/color]
   73 root      25   0     0    0     0 SW    0.0  0.0   0:00   0 khubd
  [color=red]284 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kjournald
  285 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kjournald
  286 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kjournald
  287 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kjournald
  288 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kjournald
  289 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kjournald
  290 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kjournald[/color]  579 root      15   0   220  200   148 S     0.0  0.0   0:00   0 syslogd
  583 root      15   0    52    4     0 S     0.0  0.0   0:00   0 klogd
  593 rpc       15   0    80   72     0 S     0.0  0.0   0:00   0 portmap
  612 rpcuser   25   0    80    0     0 SW    0.0  0.0   0:00   0 rpc.statd
  679 root      24   0    52    4     0 S     0.0  0.0   0:00   0 apmd
  720 root      15   0   428  364   296 S     0.0  0.1   0:00   0 xinetd
  730 root      15   0    84   56    36 S     0.0  0.0   0:00   0 gpm
  739 root      15   0   148  132    88 S     0.0  0.0   0:00   0 crond
  750 root      15   0   700  308   224 S     0.0  0.1   0:00   0 cupsd
  812 xfs       15   0  3592 1348    64 S     0.0  0.5   0:00   0 xfs
  830 daemon    15   0   180  160   120 S     0.0  0.0   0:00   0 atd

另外,经朋友指点,我正在将所有的数据导出把表重建(开始建表的时候并没有建索引,朋友告诉我把表建上索引也许会解决),不知道整理过之后会不会有问题。
请问各位高手,你们以前有没有碰到过类似问题?后来又是怎么解决的?

另外,我用ps -aux查看进程的时候发现了kjournald和kscand两个进程,查资料查不到它们到底是什么进程。用netstat -ln查看的时候发现开了个788端口,哪位高人能告诉我这两个进程有什么作用、788端口是什么端口吗?



Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。 E-mail : webmaster@lslnet.com