20181010关于pt-kill自动杀死运行超长的进程

转自:

http://blog.chinaunix.net/uid-16844903-id-4442030.html
http://blog.chinaunix.net/uid-31396856-id-5768435.html

 

经典用法
pt-kill \
--no-version-check \
--host 192.168.1.XX --port 3306 --user 'root' --password '111111' \
--charset utf8 \
--match-command Query \
--match-user USER1 \
--busy-time 10 \
--kill \
--victims all \
--interval 2 \
--print \
--pid=/tmp/ptkill.pid \
--log=/home/pt-kill.log

posted @ 2018-10-10 18:34  秦楚风  阅读(298)  评论(0编辑  收藏  举报