Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    May 2004
    Posts
    56

    Default CPU Usage spike

    Today we had CPU usage spike of more than 80% and top -b showed only few processes using just less than 3% with the only abnormality being mysql using more than 40% of RAM.
    PHP sites started to break because they couldn't connect to database.
    I've restarted mysql and everything went smooth as it was before.
    But the question is what was it? How can I find what account caused it? What you usually do about such things?

  2. #2
    Member
    Join Date
    Jun 2003
    Location
    Sydney
    Posts
    14
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    If it's a one off, I would probably let it go and just log the date, time and what happened to give me some info in case it happened again. If it happens again I would spend more time trying to figure out what happened.

    In the meantime, to be prepare in case it happens again and seems it's at the mysql end rather than Apache, you may want to familiarise yourself with "top" for mysql:

    http://mtop.sourceforge.net/mtop.html

    and / or learn a little about the > SHOW PROCESSLIST; command from mysqladmin tool and possibly start logging slow queries in mysql via slow_query_log:

    http://dev.mysql.com/doc/refman/5.0/...query-log.html

  3. #3
    Member
    Join Date
    May 2004
    Posts
    56

    Default

    Thank you very much, I'll investigate it.

    BTW: Munin showed during that time a lot of iowaits, what may be the cause of it?

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 02-11-2010, 01:58 AM
  2. Slow WHM login, plus CPU spike
    By santrix in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-01-2009, 08:34 AM
  3. 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
  4. Backups cause processor usage to spike/perfomance to a crawl
    By schwim in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 03-11-2009, 11:12 AM
  5. 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
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube