Web Hosting Talk







View Full Version : mysql cpu usage 50%


jmansoor
02-23-2005, 03:49 AM
Hi!

i used the top command on the server to see which process consuming the cpu . and i found that, some times mysql cpu usage become 50% for a secound and then drop to the normal ...

1st of all, is it normal ? should i take any steps to investigate the issue ?

thanks.

assistanz247
02-23-2005, 04:19 AM
You have to check the mysql processes, try this,

pidof mysqld

and you can download and install a handy tool called "mytop"
to monitor which user have too many connection in mysql. Also try tweaking the /etc/my.cnf.

dollar
02-23-2005, 04:19 AM
That's pretty normal if a big query is being run. If you want to look into it further get a copy of mytop and install it (it's the top command but for MySQL). It'll let you see what's doing it.