Can Someone Help Diagnose A Server Load Issue

Discussion in 'Site & Server Administration' started by articledirectory, Apr 1, 2008.

  1. #1
    My server is running under somewhat sever conditions

    currently:

    Server Load 22.21 (1 cpu)
    Memory Used 82.8 %
    Swap Used 57.04 %

    The server is controlled through WHM, is the any part of WHM i can go into to see what is causing the server load??

    Any help appreciated :)
     
    articledirectory, Apr 1, 2008 IP
  2. st1905

    st1905 Well-Known Member

    Messages:
    573
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Its probably a mysql load with so many connections at the same time. You can see it at whm via CPU/Memory/MySQL Usage .
     
    st1905, Apr 1, 2008 IP
  3. articledirectory

    articledirectory Peon

    Messages:
    1,704
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ok, i have gone into that part fo WHM, what does this mean

    User Domain %CPU %MEM MySQL Processes
    nobody 43.77 55.89 0.0
    Top Process %CPU 22.8 /usr/local/apache/bin/httpd -DSSL
    Top Process %CPU 18.6 /usr/local/apache/bin/httpd -DSSL
    Top Process %CPU 18.4 /usr/local/apache/bin/httpd -DSSL
    root 4.13 6.77 1.8
    Top Process %CPU 65.5 gzip
    Top Process %CPU 23.8 gzip
    Top Process %CPU 20.6 gzip
     
    articledirectory, Apr 1, 2008 IP
  4. st1905

    st1905 Well-Known Member

    Messages:
    573
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    135
    #4
    Apache having troubles, and gzip is the cause. Try disabling it and restart apache.
     
    st1905, Apr 1, 2008 IP
  5. articledirectory

    articledirectory Peon

    Messages:
    1,704
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi

    where do i disable it? i thought it might of been in "Service Manager" but not there, I'm still a bit of a sever admin newbie ;)

    So where do i disable it from? also what services / sites would it likely to affect?
     
    articledirectory, Apr 1, 2008 IP
  6. st1905

    st1905 Well-Known Member

    Messages:
    573
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    135
    #6
    Which script do you use ? If your script has gzip option then disable it there if not then disable it at php.ini zlib.output_compression = Off also output_buffering = off
     
    st1905, Apr 1, 2008 IP
  7. D'Godown

    D'Godown Well-Known Member

    Messages:
    1,093
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    140
    #7
    I guess your systems is running automated backups, which causing gzip and then loads.
     
    D'Godown, Apr 3, 2008 IP
  8. articledirectory

    articledirectory Peon

    Messages:
    1,704
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #8
    It does run automated backups but not during peak/day time.

    Ive put it down to an old server and have just purchased a dual core dedi box so hopefully no more slow sites :)
     
    articledirectory, Apr 3, 2008 IP
  9. ishan

    ishan Prominent Member

    Messages:
    2,212
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    325
    #9
    PHP runs as nobody, by default.
    You should install phpSuExec, or SuPHP so that it runs as a user.

    You will then have a better understanding of which account on your server is causing the load, apart from the load generated by backups.

    Please be aware that some scripts may require a few simple modifications, after phpSuExec, or SuPHP is installed.

    Ishan
     
    ishan, Apr 4, 2008 IP
  10. maestria

    maestria Well-Known Member

    Messages:
    705
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #10
    check if your server is under a dos attack.
    You can get the number of total httpd connections that is arriving to your server.
     
    maestria, Apr 5, 2008 IP