Results 1 to 3 of 3

Thread: Help! cpu load exceeding 100% causing server restart loop

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    1

    Question Help! cpu load exceeding 100% causing server restart loop

    Hi

    I really hope someone can help me here!

    I am running c-panel and WHM. The server has been fine until Thursday when it started behaving strangely.

    One of the sites on the server was having issues with the max_allowed_packet variable being set too low so I edited /etc/my.cnf to increase the sql variable max_allowed_packet from 1mb to 16mb.

    However, since around making this change one of the sites on the server keeps drawing heavily on the cpu's usage - exceeding 100% - which causes the server to reboot (it is stuck in a loop of rebooting).

    Does anyone have any suggestions on how to get the server back to normal? I can't get in to edit the file before the server resets at the moment. I've tried killing the site that is causing the cpu overload, but when I try to kill it says it doesn't exist.

  2. #2
    Member
    Join Date
    Apr 2011
    Posts
    35

    Default Re: Help! cpu load exceeding 100% causing server restart loop

    Hello,

    If you have physical access (or KVM), you can enter into single user mode with grub. This will allow you to revert the change, suspend the user, or anything else you need to do. Most datacenters will provide KVM at request. You may also be able to instruct them to log into single user and modify the file for you.

    Once you are done with single user mode, you can either reboot or type 'init 3' to fully boot the system, at your discretion.

    Barring single user mode, the only other way I know of to stop a reboot loop is by rescue shell or a live boot cd. Single user mode should be the easiest of them though.

    Please see this for instructions:

    Boot Linux Grub Into Single User Mode

  3. #3
    Member
    Join Date
    May 2004
    Location
    new york
    Posts
    105

    Default Re: Help! cpu load exceeding 100% causing server restart loop

    Shut down MYSQL then revert it to prior settings.
    After that you will need to do a MYSQL tune up to set the settings so it will not cause problems.

    But the user may have custom code that is causing your problem
    Bad SQL statements can cause very high loads.

Similar Threads

  1. Mysql, "Operation Not Supported" Endless loop and 100% CPU usage
    By cam94z28 in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 11-19-2008, 12:07 PM
  2. IMAPD stuck at 100% CPU load
    By eva2000 in forum E-mail Discussions
    Replies: 0
    Last Post: 10-14-2008, 09:23 PM
  3. Exim Causing 100% CPU Usage
    By pr0gr4mm3r in forum E-mail Discussions
    Replies: 4
    Last Post: 12-11-2007, 09:54 PM
  4. rrdtool causing high cpu load
    By petfut in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 09-09-2005, 12:48 AM
  5. 100% CPU Load? What do these mean:
    By N9ne in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 10-31-2003, 08:10 AM