MySQL getting stuck, eating up disk i/o
Posted
by bonez05
on Server Fault
See other posts from Server Fault
or by bonez05
Published on 2010-03-10T16:43:22Z
Indexed on
2010/04/21
2:03 UTC
Read the original article
Hit count: 281
Hi all,
Using mySQL 5.0.51 on Solaris .
At intermittent times it looks like MySQL is getting 'stuck' . The disk usage on the server spikes to 98% busy from reads. I used dtrace (specifically DTrace toolkit - iosnoop) to track down what processes was using all the reads. Mysql was calling tablename.TDM hundreds of times per second. There was no more than average load on the webserver that could account for this. There were no cronjobs running, and no other utilities like mysqldump or anything. It is a master / slave replication setup.
As a jury-rigged fix, I altered the mysql table from 'tablename' to 'tablename2' and then back to 'tablename'
This fixed the problem temporarily, and "unsticks" mysql. The disk usage goes back down and dtrace is no longer showing hundreds of reads to 'tablename.TDM' / second.
A couple ideas I had are:
1. MySQL version bug
2. Infinite loop somewhere in my application (which i'm not sure how likely this is)
3. ??
Has anybody seen this before or have any insight?
Thanks
© Server Fault or respective owner