My server load crossed 150 ?

Discussion in 'Site & Server Administration' started by fsmobilez, Dec 24, 2008.

  1. #1
    Last week my visitors were increased and memory usage crossed 90% and server loads jumps from 0.90 to 150+ and sever gets down

    at that time total ram for server was 2 gb

    now i increased the ram and now the total ram is 4gb

    im seeing right now there are max ever visitors on the site and still sever load is below 0.50

    i want to know that if i there is anyfurthure overloading in server and server gets down should i go for increasing ram , how much max ram will be ok


    And right now server memory usage is reaching 75% so should i increase ram or add 100mb switch port.

    im on linux server

    Thanks
     
    fsmobilez, Dec 24, 2008 IP
  2. blowingideas

    blowingideas Peon

    Messages:
    642
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    what's the service that consuming much of your resources? can you check 'top' and 'ps aux'?

    EDIT: I hope you're not being DDOS. you can also check with netstat the list of IPs that are connecting to your box
     
    blowingideas, Dec 24, 2008 IP
  3. fsmobilez

    fsmobilez Active Member

    Messages:
    449
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    78
    #3
    No i know it was not DDos

    bcoz i can see increase in visitors in google analytics

    Visitors are much better than before

    Plz reply to 1st post.
     
    fsmobilez, Dec 24, 2008 IP
  4. boltok

    boltok Active Member

    Messages:
    257
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    78
    #4
    You probably need to optimize your current site before you think about investing in more hardware.

    First step in doing that is to find out what is causing the increased memory usage and load. Is it PHP? Perl? or just the sheer number of connections? Maybe there are a lot of images being accesses?

    Apache can be a hog for simple content such as images and static pages. May want to strip any such stuff and move it to a lightweight web server. That would leave your current server to concentrate on the static stuff.

    If you're past all that, then it's time to think about multiple web servers, round-robin load balancing etc.
     
    boltok, Dec 24, 2008 IP
  5. fsmobilez

    fsmobilez Active Member

    Messages:
    449
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    78
    #5
    The memory was again reached to 85%

    even though i increased 2 gb ram total 4 gb and i added 100 mb switch port

    no doube traffic is also increasing so should i go for furthure update of ram or go for another server

    Till now what im looking is server load is not jumping above 1

    and is there any way i can know when the server load was max and how much it was and even memory usage
     
    fsmobilez, Dec 24, 2008 IP
  6. Tearabite

    Tearabite Prominent Member

    Messages:
    4,629
    Likes Received:
    429
    Best Answers:
    0
    Trophy Points:
    300
    #6
    I was running into issues with my CPU pegging out at over 100% and RAM shooting into the high 90's.. I upgraded from Apache 1.3 to Apache 2.0 and also installed a PHP Optimizer .. after doing these two things, i have not seen CPU usage go over 2% - it was adding the PHP Optimizer that made the biggest difference.

    of course these things will probably only help if you're running a PHP based CMS ..
     
    Tearabite, Dec 24, 2008 IP
  7. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #7
    Remember Linux takes all ram to make cache. The memory usage depends on what you are doing on server. What kind of script are you using? Have you optimized the script, apache, mysql? How many visitors do you have per day? And at one time?
     
    gate2vn, Dec 24, 2008 IP
  8. SSANZ

    SSANZ Peon

    Messages:
    861
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #8
    install hotsanic - google hotsanic install guide.

    Its very helpful with finding peak periods and how the server handles it, then you can modify configurations depending on how the server is handling it.
     
    SSANZ, Dec 25, 2008 IP
  9. fsmobilez

    fsmobilez Active Member

    Messages:
    449
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    78
    #9

    Thanks a bucnh, it really worked for me


    will u tell me why im getting this message
    ----------
    httpd failed @ Thu Dec 25 19:19:08 2008. A restart was attempted automagically.

    Failure Reason: Unable to connect to port 80
    -------------
     
    fsmobilez, Dec 25, 2008 IP
  10. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #10
    Try to find out any other software using port 80 already. I have seen some Exim servers taking port 80, so Apache can not restart
     
    gate2vn, Dec 26, 2008 IP