Home > Database > Mysql Tutorial > body text

mysql批量kill locked进程_MySQL

WBOY
Release: 2016-06-01 13:32:56
Original
1024 people have browsed it

bitsCN.com


mysql批量kill locked进程

 

    在slave服务器上,有时候会产生大量locked 进程,

 

导致服务器性能低下,时间越长,积累的进程越多,

 

slave产生延迟,批量脚本kill locked进程:

 

     mysql -s -e "show processlist;" | grep 'Sending data' | awk '{print "kill "$1";"}' 

 

bitsCN.com
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template