|
|
|
|
|
|
![]() |
#3 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
I wouldn't condone doing a kill for that as you're likely to leave tables in a crashed state requiring a repair or at least a check before you start.
However, with that said, you could do something like: Code:
#!/usr/bin/perl open F,("</proc/loadavg"); ($ld,$junk) = split /\./,<F>; close F; if ($ld >= 10) { `whateveryouwanttorun`; } Perhaps run something like mysqladmin -uroot -ppassword processlist | mail username@domain.com or turn on the slow query log, or do a show processlist in the mysql command line interface or phpmyadmin. Better to find the cause than to treat the effect.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|