Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Posts
    307

    optimize for busy server

    I have a busy server running Apache 2.2.3 with kernel 2.6.17.9. the command
    netstat -n | grep :80 |wc -l

    always returns around 500 - 700 connections. The hardware is Dual Opteron 248 with 2GB RAM. What's the best configuration of apache and mysql for my server?
    Traditional music traveling

  2. #2
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    Please run the following command from the shell and see if the number of TIME_WAIT connections is less than the MaxClients settings in the httpd.conf file.

    netstat -plan|grep :80| grep TIME_WAIT | wc -l

  3. #3
    Join Date
    May 2006
    Posts
    307
    No, it's bigger. The MaxClients setting in httpd.conf is 250

    # netstat -plan|grep :80| grep TIME_WAIT | wc -l
    warning, got duplicate tcp line.
    warning, got duplicate tcp line.
    warning, got duplicate tcp line.
    warning, got duplicate tcp line.
    344

    # netstat -n | grep :80 |wc -l
    warning, got duplicate tcp line.
    warning, got duplicate tcp line.
    warning, got duplicate tcp line.
    warning, got duplicate tcp line.
    486


    Currently, I have
    StartServers 8
    MinSpareServers 15
    MaxSpareServers 20
    MaxClients 250
    ServerLimit 350
    MaxRequestsPerChild 0
    Traditional music traveling

  4. #4
    Join Date
    Apr 2004
    Location
    San Jose
    Posts
    902
    TIME_WAITS don't count against anything but the TCP stack internally. They are connections that are closed already.

    To see which connections are important, run grep -v TIME_WAIT, not grep TIME_WAIT.
    Specializing in MySQL and website tuning for high traffic sites. cmwsci.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •