Page 1 of 2 12 LastLast
Results 1 to 25 of 46
  1. #1

    Shared = Downtime, VPS = Downtime and now I have DEDICATED its still downtime...

    Hi,

    I need suggestions here...When I was in shared hosting, i would get downtime because of too much traffic..then I went to vps, same issue..now I am using a dedicated server and still same issue...

    my website is file sharing.. people upload files then embed them to their profiles or blogs...

    What kind of server do i need to handle this?

    My website is about 1 month old and it has low traffic for now about 20-30k uniques per day (not pageviews)

    I know I would get more if i finish a day without downtime (averaging 3 hours of downtime a day)
    Last edited by treck33; 05-13-2007 at 03:30 PM.

  2. #2
    Join Date
    Apr 2002
    Location
    USA
    Posts
    5,783
    What is the specs of the server?

    Why 3 hours of down time?

  3. #3
    AMD 3500+ 64 Bit CPU
    1 gigs ram


    why 3 hours downtime? well, my server keeps on going down because of too much http request and sometimes mysql resquest (connections)

    thanks

  4. #4
    Join Date
    Feb 2002
    Location
    International
    Posts
    490
    Sounds like your site is overloading the server.. so you might want to consider:

    - Optimising it to use less resources?
    - Clustered dedicated array (budget depending?) to split the SQL and HTTP requests
    Matthew - Burton Hosting
    low cost shared, reseller, VPS & dedicated solutions for over five years - we've got what you need.
    http://www.burtonhosting.com
    http://www.getmesupport.com - server monitoring service for all!

  5. #5
    Join Date
    Apr 2002
    Location
    USA
    Posts
    5,783
    Sounds like you may need to consider a second server then and move your mysql to it. Break the load down and spread it across 2 servers, Look at optimizing Apache and mysql.

  6. #6
    Quote Originally Posted by Techark View Post
    Sounds like you may need to consider a second server then and move your mysql to it. Break the load down and spread it across 2 servers, Look at optimizing Apache and mysql.

    thanks, ill look at it

  7. #7
    Join Date
    May 2007
    Location
    Phoenix, AZ
    Posts
    33

  8. #8
    if it's strictly file sharing, split the web server and database like others above have said, then replace Apache with lighttpd, you'll see the load drop significantly

    On my static file server, using Apache my load was 5+ constantly, after moving over to lighttpd it never goes past 0.5 even during peak hours, getting around 100k+ uniques per day on a E6300 w/1GB RAM

  9. #9
    Join Date
    Jul 2004
    Location
    Chicago, IL
    Posts
    128
    sounds like you need to limit the amount of connections per user. check out mod_limitipconn , that mod saved my server.

  10. #10
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,710
    Two words: Drop Apache.

    www.litespeedtech.com.
    MediaLayer, LLC - www.medialayer.com Learn how we can make your website load faster, translating to better conversion rates for your business!
    The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage - Celebrating 10 Years in Business

  11. #11
    Looks like simple http server overload.
    Close all mysql connections and test server.
    I added mysql close and its helping a little =)


    if it's strictly file sharing, split the web server and database like others above have said, then replace Apache with lighttpd, you'll see the load drop significantly
    On my static file server, using Apache my load was 5+ constantly, after moving over to lighttpd it never goes past 0.5 even during peak hours, getting around 100k+ uniques per day on a E6300 w/1GB RAM
    lighttpd is that an operating system? if so, how easy/hard is it to move??



    Two words: Drop Apache.
    www.litespeedtech.com.

    Thanks. I will consider this but i will make a good deep researching first.

    thanks guys

  12. #12
    ok..litespeedtech is not free..

    is lighttpd free? what is lighttpd exactly?

  13. #13
    Join Date
    Feb 2003
    Location
    Dallas, TX
    Posts
    1,498
    lighttpd is lean web server that runs more efficiently than apache (read: uses less resources to do the same thing). We've used it on some VB sites and have gotten a bit of an improvement, but don't expect magic there.

    Your issue may be more of an optimization issue as a dedicated server for that type of purpose should be enough. Perhaps try adding more RAM?

    JoseQ
    TailorMadeServers.Com - Dallas Dedicated Servers since 2003
    joseq@tailormadeservers.com | Skype (TailorMadeServers) | http://twitter.com/tailoredservers

  14. #14
    Join Date
    Dec 2006
    Posts
    4,151
    lighttpd is a great web server.

    It cut my server load from load 5 average to load 1.

  15. #15
    My programmer is currently fixing his script so it will use a small amount of resources.. if that doest work, i will upgrade to the next plan ..

    Does anyone know a service or a company that installs lighttpd?

  16. #16
    Im also able to lessen my downtime by having http server restart button ready so when my host tracker sends me downtime email, first thing i do is click on that restart button and it would restore up few seconds later =) the bad thing about this is i need to stay on my computer 24/7
    since its sunday, i am really staying infront of my computer because big money comes during the weekends =) and i dont want that to get wasted because of downtime.

  17. #17
    Just out of curiosity is this Apache 2 or 1.33 you are using?

  18. #18
    Join Date
    May 2004
    Location
    Tucson, Arizona
    Posts
    218
    You can also look at configuring squid to act as your web server for static content.
    Plain Fast Small Business Web Hosting & Server Management

  19. #19
    Server Version: Apache/1.3.37

  20. #20
    Join Date
    Feb 2003
    Location
    Dallas, TX
    Posts
    1,498
    If an apache restart solves the problem, sounds like you may have some scripts that are not clearing out perhaps?
    TailorMadeServers.Com - Dallas Dedicated Servers since 2003
    joseq@tailormadeservers.com | Skype (TailorMadeServers) | http://twitter.com/tailoredservers

  21. #21
    yes it seems like it...my programmer is working on it .. are you talking about closing out mysql connection?

  22. #22
    Join Date
    Feb 2003
    Location
    Dallas, TX
    Posts
    1,498
    It could be anything. Infinite loops, some queries that may take too long to answer may be slowly accumulating, super slow downloaders, things like that. I would look at the processes when Apache stops responding and find out what's going on.

    May also be useful to write a cron job that checks for apache to be responding properly and restart apache if it isn't.

    JoseQ
    TailorMadeServers.Com - Dallas Dedicated Servers since 2003
    joseq@tailormadeservers.com | Skype (TailorMadeServers) | http://twitter.com/tailoredservers

  23. #23
    May also be useful to write a cron job that checks for apache to be responding properly and restart apache if it isn't.
    wow.. now how do you do that? lol

  24. #24
    Join Date
    Feb 2003
    Location
    Dallas, TX
    Posts
    1,498
    Should be fairly easy to fo in php. Try to open a file using the URL, and if it fails, then issue the restart command.
    TailorMadeServers.Com - Dallas Dedicated Servers since 2003
    joseq@tailormadeservers.com | Skype (TailorMadeServers) | http://twitter.com/tailoredservers

  25. #25
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    9,072
    Quote Originally Posted by treck33 View Post
    wow.. now how do you do that? lol
    #!/bin/sh
    checkapache=`ps ax | grep -v grep | grep -c httpd`
    if [ $checkapache -le 0 ]
    then
    /usr/local/apache/bin/apachectl startssl
    fi


    Stick that in a file and have cron run it every minute.

Page 1 of 2 12 LastLast

Posting Permissions

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