Need Help, My server load Doesnt Seem To be normal.Load Averages goes high....

Discussion in 'Site & Server Administration' started by angelz_17, Apr 26, 2012.

  1. #1
    Need Someone to help me out.

    My Server Details :

    Total processors: 2

    Processor #1

    Intel(R) Pentium(R) Dual CPU E2160 @ 1.80GHz


    Processor #2

    Intel(R) Pentium(R) Dual CPU E2160 @ 1.80GHz


    Mysql takes alot of resources over 125%

    k0ouw4.jpg

    Need Someone's Help Urgently!! please contact me ASAP whoever can help me out..

    Waiting,

    Thanks
     
    angelz_17, Apr 26, 2012 IP
  2. angelz_17

    angelz_17 Active Member

    Messages:
    183
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #2
    This Is the most recent top when i was getting traffic at one of my website

    [​IMG]

    Can someone please tell me the solution and help me out?

    Waiting for some urgent reply

    Thanks
     

    Attached Files:

    Last edited: Apr 26, 2012
    angelz_17, Apr 26, 2012 IP
  3. Iann@LFCVPS

    Iann@LFCVPS Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It might be worth firing up mysql and running a "show full processlist" to see if you have queries that have been sitting there chewing away at CPU for minutes/hours on end. If you do, you can have a look what can be done to optimize the query.
     
    Iann@LFCVPS, Apr 26, 2012 IP
  4. angelz_17

    angelz_17 Active Member

    Messages:
    183
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #4
    how to do it ? i dont know much about dedicated servers....
     
    angelz_17, Apr 27, 2012 IP
  5. Iann@LFCVPS

    Iann@LFCVPS Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    When you are at your command shell, type mysql -u root -p and hit enter. This should prompt you for your password for mysql. Once into the mysql shell, type "show full processlist" and see if you have any queries that have a long time running when the load is high like this. Alternatively, you could just try restarting the mysql daemon to see if it resolves the load issue.
     
    Iann@LFCVPS, Apr 27, 2012 IP
  6. angelz_17

    angelz_17 Active Member

    Messages:
    183
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #6

    Restarting mysql doesnt solve the issue... can anyone solve it for me please ?

    waiting for someone to help... :(
     
    angelz_17, Apr 30, 2012 IP
  7. Iann@LFCVPS

    Iann@LFCVPS Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    What do you see when you do the other steps I listed for the show processlist? That might help us diagnose this.
     
    Iann@LFCVPS, Apr 30, 2012 IP
  8. angelz_17

    angelz_17 Active Member

    Messages:
    183
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #8
    i entered the mysql shell i typed "show full processlist" but nothing happened...
     
    angelz_17, May 1, 2012 IP
  9. Iann@LFCVPS

    Iann@LFCVPS Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Absolutely nothing? Are you using the root account when connecting to mysql? You might want to get someone who is a little more well versed in mysql to log into your server for you and poke around though as it doesn't sound like this is a problem that is going to be easily fixed by someone new to mysql.
     
    Iann@LFCVPS, May 1, 2012 IP
  10. angelz_17

    angelz_17 Active Member

    Messages:
    183
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #10
    Actually i dont know much about this. i manage my websites and have dedicated server.can you suggest me someone who can help me out?

    Waiting for your reply

    Thanks

     
    angelz_17, May 1, 2012 IP
  11. Iann@LFCVPS

    Iann@LFCVPS Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    You might want to create a new thread in this forum and one in the Databases/MySQL forum asking people to PM you with rates to help you out.
     
    Iann@LFCVPS, May 1, 2012 IP
  12. selvamurali

    selvamurali Peon

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    hi

    in Your Apace kindly compile with FastCGI. it will help you more. and install mysqltune.pl and run it. it will say what you need to change.
    thank you
     
    selvamurali, May 6, 2012 IP
  13. fixyourserver

    fixyourserver Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #13
    Honestly, it looks like a bad MySQL configuration since there isn't much running on the machine. Unfortunately, MySQL is one of those services that you really need to monitor yourself and analyze historical usage in order to make appropriate recommendations. If you'd like, feel free to post your /etc/my.cnf contents and perhaps a few of us can give you some general tuning options which might help.

    An easier way to run what Iann had mentioned is 'mysqladmin pr'. You might need to run it multiple times. If at that point you are still unable to catch an queries running, this would definitely indicate an issue with your configuration.
     
    fixyourserver, May 7, 2012 IP
  14. angelz_17

    angelz_17 Active Member

    Messages:
    183
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #14
    Hello

    This is the result when i ran mysqladmin.pl

    Can anyone help me out please ? :(

    Thanks







     
    angelz_17, May 10, 2012 IP
  15. fixyourserver

    fixyourserver Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #15
    Enable thread and query caching. Additionally, set the number of threads equal to the number of CPUs. Also, make the necessary adjustments that mysqltuner.pl recommended. It may increase your RAM usage but should decrease CPU greatly.

    If you need further assistance, pm me and I'll give you my default my.cnf and we can work from there.
     
    fixyourserver, May 10, 2012 IP
  16. aqualabs

    aqualabs Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    It also may be useful to enable mysql query slow log to analyze.
     
    aqualabs, May 30, 2012 IP
  17. linux7802

    linux7802 Active Member

    Messages:
    110
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #17
    as per the top result zombie process eating the cpu, check the top process closely as well as connection to port 80, it will help you to resolve the issue
     
    linux7802, Jun 1, 2012 IP