Results 1 to 20 of 20

Thread: apache 2 vs 1 ?

  1. #1
    Join Date
    Jan 2006
    Posts
    71

    apache 2 vs 1 ?

    i want ask what is the recommanded apache 1 or 2 ?

  2. #2
    Join Date
    May 2006
    Location
    Teh Interweb
    Posts
    314
    Personally I still use Apache 1.x. There have been tests run and the results show that Apache2.x will serve static pages faster than Apache1.x but dynamic pages (php) are still served faster on Apache1.x.

    Either way you go, you can't go wrong. The Apache Software Foundation makes an awesome product.

    [theBleeber@wht01] ~ $ cat .signature
    cat: .signature: No such file or directory

  3. #3
    Join Date
    Mar 2005
    Location
    Hattiesburg, MS
    Posts
    160
    I second version 1.3 - It will be supported and around for a long time to come. But either one will do. Maybe flip a coin?
    InsanelyMacintosh - Macintosh Software Repository Listings

  4. #4
    Join Date
    Jan 2006
    Posts
    71
    when i check these commnd on ssh :

    netstat -nt | grep :80 | wc -l

    i see around 2154 or 1950 connected

    if i change it ro 2.x that serv me or not

    server details:
    dual xeon 3.2
    ram 4gb

  5. #5
    Join Date
    Mar 2005
    Location
    Hattiesburg, MS
    Posts
    160
    yes, version 2.0 or version 1.3 will be able to handle that load very easily.
    InsanelyMacintosh - Macintosh Software Repository Listings

  6. #6
    Join Date
    May 2006
    Location
    Teh Interweb
    Posts
    314
    Are you having issues with the current installed version? If not, I wouldn't touch it.

    [theBleeber@wht01] ~ $ cat .signature
    cat: .signature: No such file or directory

  7. #7
    Join Date
    Jan 2006
    Posts
    71
    i have high load and also i have high memusage

  8. #8
    Join Date
    May 2006
    Location
    Teh Interweb
    Posts
    314
    Each instance will be different. What type of content is being served up on those 2154 connections. You will really need to do some research to solve this problem. It may be that you just need to tweak your settings a bit.

    [theBleeber@wht01] ~ $ cat .signature
    cat: .signature: No such file or directory

  9. #9
    Join Date
    Jan 2006
    Posts
    71
    those connections using httpd and mysql

  10. #10
    Join Date
    Jan 2006
    Posts
    71
    httpd version : 1.3.37
    mysql version : 4.0.27

  11. #11
    Join Date
    May 2006
    Location
    Teh Interweb
    Posts
    314
    Have you optimised each of the services? You may be able to save all of it by just tweaking the conf files. Again, this is going to take you doing some research into which settings are best for your situation. Try googling somethign like: optimize mysql or optimize apache. If after all of this you are still ahving issues, it may be time to consider moving some clients off of the machine or if this is one client, maybe discuss the possibility of a cluster.

    [theBleeber@wht01] ~ $ cat .signature
    cat: .signature: No such file or directory

  12. #12
    Join Date
    Jan 2006
    Posts
    71
    i do a lot of settings but i still got troubles

  13. #13
    Join Date
    May 2006
    Location
    Teh Interweb
    Posts
    314
    Is this just one site or multiple clients? As stated previously, you have options to balance the load amongst multiple servers.

    [theBleeber@wht01] ~ $ cat .signature
    cat: .signature: No such file or directory

  14. #14
    Join Date
    Jan 2006
    Posts
    71
    i don't think there is a huge sites on this server it's around 170 sites and maximum bandwidth usage for some sites in mount between 30 or 40 gig and these sites around 5

  15. #15
    Join Date
    May 2006
    Location
    Teh Interweb
    Posts
    314
    Unfortuantely, you cannot ever say how many clients will be to many on shared server. It will always come down to the type of content served. You could have thousands of static low traffic sites that never stress a server and on the flip side you could have 1 site that needs to be spread across a 10 server cluster. It all depends on the sites themselves. If you have 2000 connections active to apache, the sites are dynamic and using mysql, your load and memory usage is high and you have properly tweaked and configured your system it looks like it is time to spread your accounts out over multiple servers. If not, you run the risk of the sites running slow and then your users will start to complain, or worse, cancel.

    [theBleeber@wht01] ~ $ cat .signature
    cat: .signature: No such file or directory

  16. #16
    Join Date
    Jan 2006
    Posts
    71
    is there i simple or default setting or optimise for the high load or high connections for httpd and mysql ?

  17. #17
    Join Date
    Jan 2006
    Posts
    71
    is there a default setting for optimise and tweek for high load and high connections for the noth of httpd,mysql ?

  18. #18
    Join Date
    May 2006
    Location
    Teh Interweb
    Posts
    314
    Try something like:

    google: high load apache optimize

    [theBleeber@wht01] ~ $ cat .signature
    cat: .signature: No such file or directory

  19. #19
    Join Date
    Dec 2005
    Location
    Internet
    Posts
    1,352
    Quote Originally Posted by 4mhf
    is there a default setting for optimise and tweek for high load and high connections for the noth of httpd,mysql ?
    Please let us know your server configuration like CPU, RAM etc. so that you can get some help from here.
    Senior Server Administrator

  20. #20
    Join Date
    Nov 2001
    Location
    London
    Posts
    4,931
    Paste the top of your httpd.conf and my.cnf here and we can have a look.
    Matthew Russell | Namecheap
    Twitter: @mattdrussell

    www.easywp.com - True Managed WordPress, made easy

Posting Permissions

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