Results 1 to 3 of 3

Thread: High CPU Load

  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    3
    cPanel/WHM Access Level

    Website Owner

    Default High CPU Load

    Hi everyone!

    My server has been experiencing extremely high CPU load. Sometimes the Load Averages go above 100.00.

    While this happens, spamd fails, chkservd hangs and I now I got an email saying:
    Drive Critical: /tmp (/var/tmp) is 100% full
    Drive Critical: /usr/tmpDSK (/tmp) is 100% full

    My questions are:

    How can I see what's filling up these directories and how can I see the size of them?

    Code:
    * X3460 CPU
    * 16Gb ram
    * 2x1TB drives in software raid 1
    * 100mbps port
    * Centos 5.8 64 bit
    * Standard partitioning (4gb swap, 100mb /boot, remainder /)
    * Cpanel / WHM
    Thank you

  2. #2
    Member
    Join Date
    May 2011
    Posts
    333
    cPanel/WHM Access Level

    Root Administrator

    Default Re: High CPU Load

    when this happens or starts happening, login via SSH and run the command:

    top -c
    paste the output here.

    check your mail queue to see if you have a spammer or compromised account.

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: High CPU Load

    A spammer isn't going to fill up /tmp and the reason the load is going crazy is likely due to MySQL filling it up. /tmp is used for PHP sessions and for MySQL MyISAM temporary tables. I've never seen PHP sessions filling it up, but I have seen MySQL doing it a lot.

    Check if it's MySQL by running this:

    Code:
    cd /var/lib/mysql
    grep -i "incorrect key" hostname.err
    Replace hostname.err with the fully qualified hostname of the machine + .err at the end.

    If you do see entries for that for /tmp, then MySQL is the cause. You can follow these suggestions to correct that:

    http://forums.cpanel.net/f5/drive-cr...tml#post799162

    Earlier in that thread, I also mention how to resize /tmp otherwise. I think changing the MySQL tmpdir is a better choice, but it's up to you.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads

  1. Need Help , High load avg and high cpu usage
    By minitech in forum Optimization
    Replies: 2
    Last Post: 03-15-2011, 01:39 PM
  2. high cpu load
    By richenou in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 11-24-2007, 08:46 AM
  3. Problem with high load, high iowait CPU
    By Berbox in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 06-20-2007, 05:38 AM
  4. high cpu and time processes... load average high
    By alexd in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 12-20-2004, 03:50 AM