Apache Seems to be busy but load is 0.00

Discussion in 'Apache' started by Yazari, Feb 12, 2007.

  1. #1
    Hello all,

    here is my problem:

    i'm hosting a forum (~80 simultalinous users online) In a VDS 512 MB RAM, Linux Debian with apache 1.3 and mysql 4.1 , php4.

    Apache seems to be busy, pages don't even load, this can be resolved by restating apache. and after a couple of time (about 4 hours) it does the same thing again, and i do have to restart it again and looping ...

    Here is my httpd.conf file :


    Timeout 200
    KeepAlive On
    MaxKeepAliveRequests 200
    KeepAliveTimeout 3
    MinSpareServers 5
    MaxSpareServers 15
    StartServers 5
    MaxClients 20
    HostnameLookups Off
    
    MaxRequestsPerChild 2000
    
    Listen 80
    BindAddress *
    Code (markup):
    Can you please help me ?
     
    Yazari, Feb 12, 2007 IP
  2. cool2g

    cool2g Banned

    Messages:
    11
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It is happening because your Maximum clients requests have been set too low. Change the value of MaxClients 20 to 1000.

    Like this:

    MaxClients 1000

    And also for better apache performance you can follow my below suggested values:

    Set the following values:

    Timeout 65
    KeepAlive On
    MaxKeepAliveRequests 15
    KeepAliveTimeout 1

    After changing the values, restart your apache. Hope your problem will be resolved :)

    Regards
     
    cool2g, Feb 12, 2007 IP
  3. Yazari

    Yazari Peon

    Messages:
    180
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thank you mate
     
    Yazari, Feb 20, 2007 IP
  4. Mxhub

    Mxhub Active Member

    Messages:
    474
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #4
    set timeout to 30
    keepalive to off.

    This will reduce your apache load and speed thing up.
     
    Mxhub, Feb 21, 2007 IP
  5. rootbinbash

    rootbinbash Peon

    Messages:
    2,198
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #5
    keepalive off and set the timeout to 10.Also there can be a mysql problem.Please check the logs and paste the sql config
     
    rootbinbash, Feb 21, 2007 IP