need suitable apache/php config

Discussion in 'Apache' started by James M, Jan 16, 2008.

  1. #1
    I've got a server belting out millions of requests a day (ad server) and would like things running more smoothly than they already are. It's fine most of the time, but rather slow during busy browsing periods (USA lunch times)

    I'm chasing a better apache / sql config. suggestions are welcome.

    Server is C2 2.4 Ghz, 4Gig RAM (serves web and email)

    Current Apache config:
    KeepAlive Off (everytime I try to use keepalive, it really is slow)
    StartServers 8
    MinSpareServers 5
    MaxSpareServers 20
    ServerLimit 320
    MaxClients 320
    MaxRequestsPerChild 4000
    HostnameLookups Off

    MySQL: (on another C2 2.4Ghz / 2GB RAM machine)
    [mysqld]
    skip-name-resolve
    max_connections = 512
    table_cache = 3072
    key_buffer_size = 128M
    key_buffer = 256M
    query_cache_size = 128M
    query_cache_limit = 2M
    join_buffer_size = 1M
    read_buffer_size = 1M
    read_rnd_buffer_size = 1M
    sort_buffer_size = 4M
    log_slow_queries = ON

    Cheers
     
    James M, Jan 16, 2008 IP