Apache Experts - Configuration Advice Wanted

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 49thParallel
    So Fucking Banned
    • Jul 2002
    • 1197

    #1

    Apache Experts - Configuration Advice Wanted

    I am trying to optimize a couple of my apache servers. p4 2000 512mb - Bandwidth average 3 mbps - gallery traffic - approx 16 thumbnails per page

    Right now I have:
    StartServers set to 12
    MaxClients set to 600
    KeepAlive Off

    Anyone running similar traffic that would like to share their thoughts on the optimum appache configuration, keeping my existing level of memory and CPU.
  • jennycards
    Confirmed User
    • Feb 2002
    • 1124

    #2
    Have you got performance problems? If not, don't touch that thingy
    Make Money with true niche programs like Adult ECards - Pantyhose Fetish - Men in Pantyhose

    Comment

    • ZoiNk
      Confirmed User
      • Feb 2002
      • 2370

      #3
      I am not an expert, but your start up number of connections is way too low. Have 40-50 for something like that Have keepalive between 2-4 seconds, that keeps things fast and doesn't leave the connections open for long if the person isn't going to use it.
      ZoiNk
      "People can have the Model T in any color - so long as it's black." - Henry Ford

      Comment

      • ZoiNk
        Confirmed User
        • Feb 2002
        • 2370

        #4
        Originally posted by jennycards
        Have you got performance problems? If not, don't touch that thingy
        With that config there is going to be performance problems ;)
        ZoiNk
        "People can have the Model T in any color - so long as it's black." - Henry Ford

        Comment

        • jennycards
          Confirmed User
          • Feb 2002
          • 1124

          #5
          O.K. ... here comes my set-up:

          StartServers 10 # maybe I should increase that ... but it doesn't matter much
          MinSpareServers 10
          MaxSpareServers 20
          MaxClients 256 # can't set it any higher ... older version??
          KeepAlive On
          MaxKeepAliveRequests 0 # unlimited
          KeepAliveTimeout 10
          Last edited by jennycards; 12-26-2002, 09:05 PM.
          Make Money with true niche programs like Adult ECards - Pantyhose Fetish - Men in Pantyhose

          Comment

          • L0stMind
            Confirmed User
            • Sep 2002
            • 1681

            #6
            Timeout 3000
            KeepAlive On
            MaxKeepAliveRequests 100
            KeepAliveTimeout 15
            MinSpareServers 25
            MaxSpareServers 50
            StartServers 500
            MaxClients 5092

            http://cashcore.com
            - Make Money.
            http://ezprovider.net - Hosting.

            Comment

            • L0stMind
              Confirmed User
              • Sep 2002
              • 1681

              #7
              Originally posted by jennycards
              O.K. ... here comes my set-up:

              MaxClients 256 # can't set it any higher ... older version??
              You gotta recompile...

              http://cashcore.com
              - Make Money.
              http://ezprovider.net - Hosting.

              Comment

              • m0rph3us
                Confirmed User
                • Mar 2001
                • 2033

                #8
                Originally posted by L0stMind
                Timeout 3000
                KeepAlive On
                MaxKeepAliveRequests 100
                KeepAliveTimeout 15
                MinSpareServers 25
                MaxSpareServers 50
                StartServers 500
                MaxClients 5092
                LOL @ maxclients.
                <font size="2" face="Tahoma"><a href="http://www.18blowjobs.com/webmasters/?640" target="_blank">Get paid $25 per signup</a> listing over <a href="http://galleries.18blowjobs.com/hosted.html" target="_blank">100 free hosted video galleries</a> - <a href="http://www.18blowjobs.com/webmasters/?640" target="_blank">Check it</a> » </font>

                Comment

                • 49thParallel
                  So Fucking Banned
                  • Jul 2002
                  • 1197

                  #9
                  Thanks for the replies...I was suprised to see that everyone keeps keepalive on. Looks like it's time for me to experiment....

                  Comment

                  • Lionking
                    Registered User
                    • Sep 2002
                    • 61

                    #10
                    It's a real bitch to surf using faster connection if you don't have keep-alive on.
                    Ask me about custom adult content management system for handling CM, site & domain management, sponsor management, customised submitter and more...

                    Comment

                    • Easy
                      Registered User
                      • Feb 2002
                      • 79

                      #11
                      Originally posted by L0stMind
                      Timeout 3000
                      KeepAlive On
                      MaxKeepAliveRequests 100
                      KeepAliveTimeout 15
                      MinSpareServers 25
                      MaxSpareServers 50
                      StartServers 500
                      MaxClients 5092
                      hehehe.. with max clients 5092 you can push probably 150+ mbps gallery traffic

                      Comment

                      • ServerGenius
                        Confirmed User
                        • Feb 2002
                        • 9377

                        #12
                        Originally posted by Easy


                        hehehe.. with max clients 5092 you can push probably 150+ mbps gallery traffic
                        You can't everything depends on what you're serving.....big movies....yes you can server 80Mbps with that with 1 100Mbps
                        NIC card....TGP galleries.....forget it....

                        Depending on what kind of OS you run you can increase the
                        max clients by editing httpd.h and change hard_server_limit

                        On linux 2048 is the max unless you recompile the kernel but
                        going higher will probably make your system quite unstable.

                        FreeBSD out of the box 4096 take in account that you do need
                        quit a bit of RAM and CPU in order to run a shitload of apache
                        childs.

                        For TGP galleries I wouldn't turn off keepalive but just put the
                        timeout lower...since there are many small files it will only cause
                        a shitload of connections per page

                        Timeout 300
                        KeepAlive on
                        MaxKeepAliveRequests 200
                        KeepAliveTimeout 15
                        MinSpareServers 50
                        MaxSpareServers 25
                        StartServers 250
                        MaxClients 2048
                        MaxRequestsPerChild 30000

                        Start servers high prevents apache to inmediately start heavy
                        forking of new childs which takes server resources.

                        If you don't need logging turn off the access_logs for all domains
                        if you do need logging, write logfiles to a different HDD or at least
                        a different partition....read/write to disk is load if you don't need
                        it turn it off...

                        Also when building apache use only modules you need.....anything
                        you don't need.....don't use it. Each request is spiralled through all modules available to see if it has to do something. Less modules, higher perfomance. Compile modules static in httpd binary.....avoid DSO loadable mods at runtime.

                        Ok I hope this helps......and makes sense

                        DynaMite
                        | http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |

                        Comment

                        • ServerGenius
                          Confirmed User
                          • Feb 2002
                          • 9377

                          #13
                          if you make some money....invest in ZEUS webserver to replace
                          your apache...

                          DynaMite
                          | http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |

                          Comment

                          Working...