The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Server Overloading always

Discussion in 'General Discussion' started by big_bull, Nov 16, 2009.

  1. big_bull

    big_bull Well-Known Member

    Joined:
    Nov 19, 2006
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello,

    One of my servers is overloading always.

    Following is top output.

    root@abc [~]# top
    top - 05:15:41 up 17 days, 23:54, 3 users, load average: 6.18, 5.33, 4.87
    Tasks: 267 total, 11 running, 252 sleeping, 1 stopped, 3 zombie
    Cpu(s): 43.0%us, 24.6%sy, 0.0%ni, 6.3%id, 23.4%wa, 0.2%hi, 2.5%si, 0.0%st
    Mem: 4151128k total, 3903744k used, 247384k free, 392016k buffers
    Swap: 2096472k total, 84k used, 2096388k free, 2824348k cached

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    20548 mysql 15 0 103m 20m 4368 S 45.5 0.5 0:26.49 mysqld
    21371 cseman 17 0 111m 27m 7444 S 14.3 0.7 0:00.43 php5
    21348 hrmsys 18 0 30512 15m 6284 R 8.6 0.4 0:00.26 php5
    21354 almo 15 0 102m 17m 7012 S 5.0 0.4 0:00.15 php5
    21355 almo 16 0 102m 17m 7052 R 4.3 0.4 0:00.13 php5
    19894 asraes 15 0 101m 16m 6988 S 2.3 0.4 0:04.69 php5
    19873 asraes 15 0 101m 16m 7004 S 1.7 0.4 0:04.06 php5
    21357 tedcyuc 18 0 100m 15m 6800 R 1.3 0.4 0:00.04 php5
    23124 remixfor 17 0 0 0 0 Z 7.0 0.0 0:00.21 php5 <defunct>

    seems issue with apache compiled.

    Please assist.
     
  2. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    Why do you think it is your apache compile?


    Cpu(s): 43.0%us, 24.6%sy, 0.0%ni, 6.3%id, 23.4%wa, 0.2%hi, 2.5%si, 0.0%st

    23% of your load is being cause by waiting on the hard drive. That snapshot may not be indicative of how it normally runs but I would watch the IO on your server. If it stays up high and nothing is wrong like a failing disk you should try to reduce the IO. One of the easiest things is noatime and depending on your drive configuration moving MySQL to another drive.
     
  3. big_bull

    big_bull Well-Known Member

    Joined:
    Nov 19, 2006
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Its just because I am getting alerts like this

    Account: XXXX
    Resource: Virtual Memory Size
    Exceeded: 103 > 100 (MB)
    Executable: /usr/local/cpanel/cgi-sys/php5
    Command Line: php5
    PID: 1235
    Killed: No

    and

    Current Configuration is

    Option Configured Value
    Default PHP Version (.php files) 5
    PHP 5 Handler cgi
    PHP 4 Handler none

    Apache suEXEC on
     
  4. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    That does not mean the server is overloading. You have a script monitoring how much memory everything takes up and apparently a cPanel php process is taking too much up for it. When you get it you should login and see if you are able to see what it is doing. It is something related to php and cPanel.
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  6. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Big_Bull, you are discussing two totally distinct and separate issues.

    Now regarding the loading issue, I can help you get to the bottom of that
    and also optimize your system where needed. There also may be additional factors such as things not being compiled correctly for your hardware, problems with your hard drive or controller interface, etc and I can help diagnose those issues as well.

    Now regarding the second item you mentioned with the virtual memory
    alert, that is more of a simple configuration issue with LFD (CSF).
     
Loading...

Share This Page