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 keeps getting overloaded by new Apache

Discussion in 'EasyApache' started by rhood, Jul 21, 2003.

  1. rhood

    rhood Well-Known Member

    Joined:
    Feb 15, 2003
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    This is even after the new buildapache which was supposed to address the problem. Basically once every few hours or days, the server stops responding, and the last thing in top looks something like the following:

    4:16pm up 2 days, 4:13, 1 user, load average: 42.28, 27.83, 21.79
    475 processes: 465 sleeping, 6 running, 4 zombie, 0 stopped
    CPU states: 5.5% user, 34.3% system, 0.3% nice, 59.6% idle
    Mem: 514124K av, 505824K used, 8300K free, 0K shrd, 24076K buff
    Swap: 2096472K av, 426612K used, 1669860K free 77032K cached

    PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
    23468 nobody 9 0 18244 12M 3600 R 5.1 2.4 0:04 /usr/local/apache/bin/httpd -DSSL
    23325 root 19 19 9616 2984 1412 D N 2.9 0.5 5:31 cpanellogd - seperating xferlog
    10113 nobody 9 0 19952 13M 3932 S 1.9 2.7 0:58 /usr/local/apache/bin/httpd -DSSL
    23908 root 10 0 1412 1364 824 R 1.7 0.2 4:28 top c
    28300 nobody 9 0 18480 12M 3552 S 1.7 2.5 0:02 /usr/local/apache/bin/httpd -DSSL
    29750 nobody 9 0 0 0 0 Z 1.5 0.0 0:00 httpd <defunct>
    26089 nobody 9 0 21092 15M 3956 S 1.1 2.9 1:14 /usr/local/apache/bin/httpd -DSSL
    26069 nobody 9 0 20212 12M 3920 D 0.9 2.5 1:10 /usr/local/apache/bin/httpd -DSSL

    If Apache is stopped and started in time, the loads will go right back down.

    Any ideas? Thanks!

    cPanel.net Support Ticket Number:
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    What operating system / cPanel ver. are you running? Are there any errors in dmesg or messages?

    cPanel.net Support Ticket Number:
     
  3. rhood

    rhood Well-Known Member

    Joined:
    Feb 15, 2003
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    RedHat 7.3 and the latest stable release of CPanel 7.x. There are no errors in either messages or dmesg. The Apache error log also seems to draw a blank.

    cPanel.net Support Ticket Number:
     
  4. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Perhaps you need to tweak the max clients, keep alive, timeouts, etc.

    cPanel.net Support Ticket Number:
     
  5. rhood

    rhood Well-Known Member

    Joined:
    Feb 15, 2003
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    I have made the following two observations:

    1. Right before becoming unresponsive, there are many more running processes than there should be. This number is usually 1-200, whereas right before it goes down, the number is usually 500 or more. By going down I mean the server still responds to pings, but that's it (won't even allow an SSH login, which simply times out after a few minutes).

    2. If Apache is stopped and restarted in time, the problem is averted.

    cPanel.net Support Ticket Number:
     
  6. mrcbrown

    mrcbrown Well-Known Member

    Joined:
    Jun 5, 2003
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    By any chance do you fall in any of these categories:

    1) Running ColdFusion?

    2) On Rackshack.net?

    3) Running Newest 7.3 kernel?

    I am having similar problems with a configuration of that style. The load however comes and goes, but yesterday it PEAKED up look like at least 1000 httpd processess running, ran a killall and cleared them quick, load when down, restarted apache and all was fine with the world. Be nice to have some feedback on this from any apache experts out there. I have updated apache, and had it adjust its useage.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page