Innotop and Monit to kill thread using too much resources
Posted
by
pocesar
on Server Fault
See other posts from Server Fault
or by pocesar
Published on 2013-07-01T09:33:37Z
Indexed on
2013/07/01
10:22 UTC
Read the original article
Hit count: 235
Instead of restarting the whole MYSQL process, sometimes I just want to kill the offending thread instead of making everything go down. Usually the spike in CPU is when a bot is crawling the first pages of pagination of my site (over 70.000 paginated results, 45 items per page).
Is there a way I could do this automatically using monit and innotop? I couldn't find relevant information on Google, that's why I'm asking here. If these two tools aren't par to the task, which ones should I use?
© Server Fault or respective owner