Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2006
    Posts
    111

    Default Help my MySQL usage going to 113% CPU usage

    Hello,

    I have the oddest problem with my server. It seems ever since I upgraded to MySQL 5 things have been a litle odd with it. I was watching top today on my server and noticed on 2-3 times that mysql would jump to 113% CPU. I'm not sure how this is possible to be honest but at any rate thats not normal. I also get MySQL taking up 20-30% most of the time. I'm trying to figure out who in the world is eating my MysQL.

    So I logged into WHM to view MySQL processes, thinking there must be like 100 sessions but I was surprised to see only this:

    Id User Host db Command Time State Info
    1 eximstats localhost eximstats Sleep 133 NULL
    539588 leechprotect localhost leechprotect Sleep 25579 NULL
    572954 eximstats localhost eximstats Sleep 1472 NULL
    574481 cphulkd localhost cphulkd Sleep 5 NULL
    574488 root localhost NULL Query 0 NULL SHOW PROCESSLIS

    So my question is, what in the world is causing my MySQL to eat my CPU like there is no tomorrow?

  2. #2
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    You could turn on mysql query logging to find out.

  3. #3
    Member
    Join Date
    Jun 2007
    Posts
    76

    Default

    Mine did the same thing it lasted for about 6 hours until everything updated by the next day all was back to the way it was before the update.

  4. #4
    Member
    Join Date
    Nov 2006
    Posts
    111

    Default

    No, I don't think it is still upgrading as I did the upgrade about 3 weeks ago.

  5. #5
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    942
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    did you tried restarting mysql?
    what values are in your server load?

    In the unix shell run mysqladmin proc stat and post here the result.

    You also should check if some domain is having too many queries and you have just not enough memory to work fluidly.

    In the worst scenario, it may be a DDoS atack via sql.

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 02-11-2010, 01:58 AM
  2. What to belive: whm cpu usage or cpgs cpu usage?
    By Dreamy in forum cPGS Discussions
    Replies: 1
    Last Post: 06-09-2009, 05:52 PM
  3. CPU/Memory/MySQL Usage user nobody use hig cpu
    By stphosting in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 01-13-2006, 01:22 PM
  4. CPU/Memory/MySQL Usage
    By SACHIN in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-14-2005, 06:09 PM
  5. mySQL has High CPU Usage
    By comcage in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-05-2003, 02:22 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube