1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Apache tuning and speed

Discussion in 'Apache' started by miob, Sep 22, 2008.

  1. #1
    Hello !

    I have quite strong server, Poweredge Dual quad core, SAS disks and 16GB RAM, Gentoo os, 64 bit.
    I'm wondering why is my server so slow in peak times.

    i get about 3000 tasks, 6GB used out of 16GB, load 1,16

    some pages are loading very slow, especially pictures, i tried to play with apache settings, but still cant get satisfied speed of my web.

    i'm running Prefork MPM,
    last config is

    <IfModule mpm_prefork_module>
    StartServers 400
    MinSpareServers 100
    MaxSpareServers 400
    ServerLimit 4000
    MaxClients 4000
    MaxRequestsPerChild 2000
    </IfModule>
    KeepAliveTimeout 12
    KeepAlive On
    MaxKeepAliveRequests 0


    Can someone tell me how to speed up site a bit more , i wanna focus more on CPU, cuz it seems like using only 10, 20% of CPU resources ...
     
    miob, Sep 22, 2008 IP
  2. The Universes

    The Universes Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    With that many child processes, Apache tends to slow down a lot. The best thing to do is to switch to Lighttpd, which handles those high number of concurrent connections a lot better than Apache and with much less memory usage.

    Can you post your 'top' ouput? That will give us a better idea of what is going on.
     
    The Universes, Sep 23, 2008 IP
  3. imagize

    imagize Peon

    Messages:
    48
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try turning keep alive off or reducing the keep alive timeout to 2 or 3 seconds. If you decide to leave keepalive on, try setting MaxKeepAliveRequests to 200-300 as well.

    Also take a look at http://www.litespeedtech.com, highly recommended.

    Also do you have 10mbps or 100mbps connection? That could be the reason it is slow.
     
    imagize, Sep 23, 2008 IP
  4. WebSolutions86

    WebSolutions86 Peon

    Messages:
    434
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i m a newbie to apache but I've read read somewhere, start servers should not have a high value.
    on my server its the default value, i think 5 or 15.
     
    WebSolutions86, Sep 30, 2008 IP