Skip to main content

Find cause of high load

Comments

5 comments

  • GOT
    The best thing to do would be to get alerted when load is high so you can log in and take a look, or better yet leave top running on the server for a while so you don't have to bother logging in. CSF/LFD has a high load alert it can send out when it sees load is above a certain point.
    0
  • RetiredAF
    The best thing to do would be to get alerted when load is high so you can log in and take a look, or better yet leave top running on the server for a while so you don't have to bother logging in. CSF/LFD has a high load alert it can send out when it sees load is above a certain point.

    Thanks but so far this has only occurred at night when we are in bed so we were look for someway to automate this.
    0
  • GOT
    I'm afraid that is not something we have done before as we have detailed monitoring systems that take care of that kind of thing for us. The command to dump the output of top to a file is top -b -n 1 > top.txt But you'd have to write a bash script that checked load and then ran that command to dump the output for you. I don't have a ready made solution for that though.
    0
  • RetiredAF
    I'm afraid that is not something we have done before as we have detailed monitoring systems that take care of that kind of thing for us. The command to dump the output of top to a file is top -b -n 1 > top.txt But you'd have to write a bash script that checked load and then ran that command to dump the output for you. I don't have a ready made solution for that though.

    Thanks again. Actually your mention of CSF/LFD got me looking in that direction and I think this might be what I was looking for. webhostpython.com/billing/knowledgebase.php?action=displayarticle&id=66
    0
  • cPanelLauren
    We also have the following tutorial which might be useful:
    0

Please sign in to leave a comment.