MySQL using 99% CPU and making web site slow to a crawl
Hi all, Over the last few days that the web side of our Koha installation has been slowing to a crawl. It usually happens in the afternoon (our time) and has only been happening since librarians from interstate have been making entries for their libraries. So it could be related to something they are doing, or an entry they have made, I'm waiting for them to get back to me on what they were doing on Koha when the system slowed down. I logged on when this happened yesterday noticed that MySQL is using 99% of the CPU time. I scheduled a time last night to restart MySQL and Apache and when I logged back on Koha was running fine and MySQL was not using up 99% CPU time. I restarted MySQL and Apache and Koha is behaving normally. I don't know what to do to investigate MySQL to find out why it is using up so much CPU time, or if there is some abnormal data entered in the Koha web site that causes MySQL to do this. Can anyone give me some tips or pointers on what to do? Thanks, Greg p.s. this Debian host has been up for almost 200 days and is fully patched
On Wed, Nov 01, 2006 at 08:08:36AM +1000, Greg Vickers said:
Hi all,
I don't know what to do to investigate MySQL to find out why it is using up so much CPU time, or if there is some abnormal data entered in the Koha web site that causes MySQL to do this. Can anyone give me some tips or pointers on what to do?
Hi Greg show processlist \g; Is a great command to run in mysql, it will show you what is causing it to lock up. So if you can find the offending query with that command, then we can start to look into why its going bad. Hope this helps Chris -- Chris Cormack Programmer 027 4500 789 Katipo Communications Ltd chris@katipo.co.nz www.katipo.co.nz
participants (2)
-
Chris Cormack -
Greg Vickers