mysql数据库阻塞_mysqll 数据库相互堵塞问题

192.168.11.186 远程访问192.168.11.185 数据库

186上看到:

centos6.5:/root#mysql -uroot -p'kjk123123' -h192.168.11.185 -e"show processlist" | grep 186

Warning: Using a password on the command line interface can be insecure.

1692root192.168.11.186:38167NULLSleep61NULL

185上开启session 1692:

zabbix:/root# netstat -nap | grep 3306 | grep 185

tcp 0 0 192.168.11.186:38167 192.168.11.185:3306 ESTABLISHED 14778/mysql

zabbix:/root#

185上开启session1706:

Warning: Using a password on the command line interface can be insecure.

1692root192.168.11.186:38167DEVOPSSleep40NULL

1706root192.168.11.186:53609DEVOPSSleep13NULL

185上开启session1711:

centos6.5:/root#mysql -uroot -p'kjk123123' -h192.168.11.185 -e"show processlist" | grep 186

Warning: Using a password on the command line interface can be insecure.

1692root192.168.11.186:38167DEVOPSSleep204NULL

1706root192.168.11.186:53609DEVOPSSleep177NULL

1711root192.168.11.186:32798NULLSleep3NULL

zabbix:/root/mysql# perl mon_transaction.pl kjk123123 192.168.11.185

,,,,,

2016-11-24 09:08:32,31,1706,root,192.168.11.186:53609,DEVOPS

mysql[192.168.11.185] processid[1706] root@192.168.11.186:53609 in db[DEVOPS] hold transaction time 31

2016-11-24 09:08:32,275,1692,root,192.168.11.186:38167,DEVOPS

mysql[192.168.11.185] processid[1692] root@192.168.11.186:38167 in db[DEVOPS] hold transaction time 275

2016-11-24 09:08:32,25,1711,root,192.168.11.186:32798,DEVOPS

mysql[192.168.11.185] processid[1711] root@192.168.11.186:32798 in db[DEVOPS] hold transaction time 25

5548,1711,delete from test where username='admin',5547,1706,delete from test where username='admin'

blocking_thread[1706] blocking waiting_thread[1711]'s delete from test where username='admin'

5548,1711,delete from test where username='admin',5546,1692,

blocking_thread[1692] blocking waiting_thread[1711]'s delete from test where username='admin'

5547,1706,delete from test where username='admin',5546,1692,

blocking_thread[1692] blocking waiting_thread[1706]'s delete from test where username='admin'

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值