linux mysql占用700%多_[性能问题] CentOS6.2_x86_64+mysql-5.5.21数据库出现严重的性能问题,CPU飙升700%,...

查看slow日志,如下:

# cat /data/mysql-3306/data/mysql-slow.log|grep Query_time|sort -rn|more

# Query_time: 2.217110  Lock_time: 0.000138 Rows_sent: 71  Rows_examined: 403624

# Query_time: 1.834154  Lock_time: 0.000120 Rows_sent: 19  Rows_examined: 416850

# Query_time: 1.776122  Lock_time: 0.000158 Rows_sent: 19  Rows_examined: 416850

# Query_time: 1.499109  Lock_time: 0.000120 Rows_sent: 69  Rows_examined: 414278

# Query_time: 1.466662  Lock_time: 0.000060 Rows_sent: 5  Rows_examined: 341737

# Query_time: 1.455110  Lock_time: 0.000042 Rows_sent: 5  Rows_examined: 341737

# Query_time: 1.443143  Lock_time: 0.000042 Rows_sent: 5  Rows_examined: 341737

# Query_time: 1.426235  Lock_time: 0.000091 Rows_sent: 10  Rows_examined: 416891

# Query_time: 1.425995  Lock_time: 0.000051 Rows_sent: 5  Rows_examined: 341737

# Query_time: 1.393112  Lock_time: 0.000063 Rows_sent: 5  Rows_examined: 341737

# Query_time: 1.370813  Lock_time: 0.000044 Rows_sent: 5  Rows_examined: 341737

# Query_time: 1.360219  Lock_time: 0.000063 Rows_sent: 5  Rows_examined: 341737

# Query_time: 1.352684  Lock_time: 0.000069 Rows_sent: 5  Rows_examined: 341737

# Query_time: 1.349179  Lock_time: 0.000062 Rows_sent: 5  Rows_examined: 341737

# Query_time: 1.336438  Lock_time: 0.000129 Rows_sent: 32  Rows_examined: 418371

# Query_time: 1.323875  Lock_time: 0.000136 Rows_sent: 40  Rows_examined: 448992

# Query_time: 1.300740  Lock_time: 0.000210 Rows_sent: 69  Rows_examined: 414140

# Query_time: 1.296301  Lock_time: 0.000041 Rows_sent: 5  Rows_examined: 341303

# Query_time: 1.288829  Lock_time: 0.000055 Rows_sent: 5  Rows_examined: 341737

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值