Mate o MySQL ProcessList em cujo tempo mais de 200
mysql> select group_concat(concat('KILL ',id,';')) from
information_schema.processlist where user='root' and time > 500;
mysql> source /tmp/a.txt;
Shiny Stag