Server Load *Help*

Discussion in 'Site & Server Administration' started by larysmith711, Mar 8, 2007.

  1. #1
    I have a very beefy server... but I need to find out how to do something... can someone help me????

    -How can I find out why my server load is so much??? I have WHW so where specifically can I check to find out why I have a large load???
     
    larysmith711, Mar 8, 2007 IP
  2. lorien1973

    lorien1973 Notable Member

    Messages:
    12,206
    Likes Received:
    601
    Best Answers:
    0
    Trophy Points:
    260
    #2
    do you mean WHM?

    You can click server status and look at your cpu/mysql usage. It will show you what file(s) are currently using up the most memory
     
    lorien1973, Mar 8, 2007 IP
  3. larysmith711

    larysmith711 Notable Member

    Messages:
    3,374
    Likes Received:
    341
    Best Answers:
    0
    Trophy Points:
    215
    #3
    yeah... WHM

    This is what it shows me currently in that section??? How can I find out why the server load is so high???

    httpd (1.3.37 (Unix)) up
    ftpd up
    mysql (4.1.21-standard) up
    pop up
    cpsrvd up
    named (9.2.4) up
    imap up
    spamd up
    exim (exim-4.63-1_cpanel_maildir) up
    antirelayd up
    Server Load 5.99 (4 cpus)
    Memory Used 41.4 %
    Swap Used 0.00 %
    Disk sda7 (/) 33 %
    Disk sda1 (/boot) 31 %
    Disk sda8 (/home) 13 %
    Disk hdc1 (/backup) DMA+ 7 %
    Disk sda6 (/tmp) 4 %
    Disk sda2 (/usr) 60 %
    Disk sda5 (/var) 31 %
     
    larysmith711, Mar 8, 2007 IP
  4. lorien1973

    lorien1973 Notable Member

    Messages:
    12,206
    Likes Received:
    601
    Best Answers:
    0
    Trophy Points:
    260
    #4
    You are looking at the system health page. You want the "server status" page - its about 1/3 way down on the list.

    You'll see stuff like this:

    Top Process %CPU 0.2 httpd [www.poopypuppies.com] [/design/images/title_rating.gif]

    If you have something take up a ton of CPU power, theres your issue. the typical cause of high cpu usage is someone hotlinking images.
     
    lorien1973, Mar 8, 2007 IP
  5. larysmith711

    larysmith711 Notable Member

    Messages:
    3,374
    Likes Received:
    341
    Best Answers:
    0
    Trophy Points:
    215
    #5

    yeah... it's even highlighting a few things in red for me. Like an avatar file.

    My server load just keeps climbing higher. Server Load 9.14 (4 cpus)
     
    larysmith711, Mar 8, 2007 IP
  6. lorien1973

    lorien1973 Notable Member

    Messages:
    12,206
    Likes Received:
    601
    Best Answers:
    0
    Trophy Points:
    260
    #6
    Is your blog on the same server? If so, its definitely dragging. The pages load, but the CSS file does not. Well, now the blog isn't loading either.
     
    lorien1973, Mar 8, 2007 IP
    smindsrt likes this.
  7. larysmith711

    larysmith711 Notable Member

    Messages:
    3,374
    Likes Received:
    341
    Best Answers:
    0
    Trophy Points:
    215
    #7
    yeah... this is our peak hours right now. We have 8GB of RAM and 92% was used when I was on the phone with my server dudes. Within 2 minutes on *one* site we had a little over 1,005 unique visitors... and it's a VB forum. (slow)

    Time to go get another server... I think I have done just about everything one could do. VB optimization... MySQL optimization... time outs.
     
    larysmith711, Mar 8, 2007 IP
  8. tanfwc

    tanfwc Peon

    Messages:
    579
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #8
    It is normally that linux used up 92% of the memory as it is been designed in this way. You might want to check what sites is using the most resource and you might want to get another server on the same network to setup a remote MySQL server to lessen the load on your main server.
     
    tanfwc, Mar 9, 2007 IP
  9. Sini

    Sini Peon

    Messages:
    119
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    login over ssh and run command: top

    Keep an eye on it for awhile, what processes are those eating most resources? How is your memory usage...how much you have free and how much buffer? Furthermore, keep an eye on your swap usage. If your system uses alot of swap and very little ram is free, then you are certanly running out of ram. Next...how is your processor usage? Before changing server to biger one you should optimize the current one, as good optimizing has huge effect on server performance.
     
    Sini, Mar 9, 2007 IP
  10. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #10
    are you getting DDOSed ?
     
    agnivo007, Mar 9, 2007 IP
  11. fouadz

    fouadz Peon

    Messages:
    132
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    if you have SSH access try
    ps aux
    Code (markup):
    Post the result her.
     
    fouadz, Mar 9, 2007 IP
  12. Chris 96 WS6

    Chris 96 WS6 Peon

    Messages:
    252
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I have 26% swap usage, is that too much? I tend to say yes but I don't have any context except to compare to a desktop PC.
     
    Chris 96 WS6, Mar 9, 2007 IP
  13. Estevan

    Estevan Peon

    Messages:
    120
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    0
    #13
    hello
    well maybe this help you
    turn off persistent conection in your php.ini
    [MySQL]
    ; Allow or prevent persistent links.
    mysql.allow_persistent = Off

    add this lines in my.cnf
    wait_timeout = 10
    connect_timeout = 8

    add a memory limit in whm if no no have limite !
     
    Estevan, Mar 9, 2007 IP
  14. Chris 96 WS6

    Chris 96 WS6 Peon

    Messages:
    252
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Can I do that in cpanel? if so, where?

    I run a vbulletin forum approx 3,400 members, trying not to have to upgrade to the next biggest VPS if I can help it!!
     
    Chris 96 WS6, Mar 9, 2007 IP
  15. Sini

    Sini Peon

    Messages:
    119
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #15
    If you run a forum don't turn off persistant connections. Turning those off in this case will actually use more resources than keeping those on.
     
    Sini, Mar 12, 2007 IP
  16. rootbinbash

    rootbinbash Peon

    Messages:
    2,198
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #16
    you are wrong.
     
    rootbinbash, Mar 13, 2007 IP
  17. larysmith711

    larysmith711 Notable Member

    Messages:
    3,374
    Likes Received:
    341
    Best Answers:
    0
    Trophy Points:
    215
    #17
    And I thought that server load was high. LOL

    Server Load 103.02 (4 cpus) :eek:

    Crap! how high can a server load go???
     
    larysmith711, Mar 14, 2007 IP
  18. nddb

    nddb Peon

    Messages:
    803
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Mine got up to a 500 load on one 1 CPU... with a bad apache mistake (mod_rewrite and N option, I think). So, it can go pretty high, just processes waiting on the CPU. =) You've got too many processes, not enough CPU. =) Like 4 load should be max for you with 4 CPUs, you can spike above it and still function, but something is waiting for the CPU. If you are constantly above it... might be time to upgrade or do some tuning?
     
    nddb, Mar 14, 2007 IP
  19. funtoosh

    funtoosh Active Member

    Messages:
    415
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #19
    You might be getting httpd flood or some other kind of DDOS, check output of

    "netstat -an"

    You might need to install MOD_Evasive module for apache and also try some firewall like apf or CSF (I Recommend CSF as it integrates very well in WHM)

    Greets
     
    funtoosh, Mar 15, 2007 IP
  20. larysmith711

    larysmith711 Notable Member

    Messages:
    3,374
    Likes Received:
    341
    Best Answers:
    0
    Trophy Points:
    215
    #20

    No.... 2-3 times per week I get a lot of traffic within a very short time frame. (1-2 hours)

    We opened up the Apache "requests currently being processed" from 150 to 200 and this seemed to let more people on my site.... however it caused the server load (103) to go crazy.

    We also cut down the connection time to 5 sec Vs the 15 sec it was set at.

    Even with the server load so high... the servers preformed better than last week and the load time was 4-6 seconds during peak times. (not too bad.. IMO)
     
    larysmith711, Mar 15, 2007 IP