1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Health Monitor

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by Shawn M, Nov 10, 2010.

  1. Shawn M

    Shawn M Basic Pleskian

    22
     
    Joined:
    Oct 16, 2009
    Messages:
    79
    Likes Received:
    0
    Hi,

    I get an email two or 3 times a day that my CPU usage goes from green to red.

    How can I find the cause of why it went to red?
     
  2. BoiseComputer

    BoiseComputer Regular Pleskian

    28
    23%
    Joined:
    Apr 14, 2006
    Messages:
    143
    Likes Received:
    5
    Location:
    Boise, Idaho
    CPU Usage

    First I would look to see if they e-mails are coming it at consistent times. If so you could look at your cron jobs on the server to see if a certain job is running at those times. If the times are consistent I would run the "top" command and see what is running with high processor usage.
     
  3. Shawn M

    Shawn M Basic Pleskian

    22
     
    Joined:
    Oct 16, 2009
    Messages:
    79
    Likes Received:
    0
    Can you please give me an example of how I would run the TOP command?
     
  4. BoiseComputer

    BoiseComputer Regular Pleskian

    28
    23%
    Joined:
    Apr 14, 2006
    Messages:
    143
    Likes Received:
    5
    Location:
    Boise, Idaho
    Logon to your terminal console using SSH. When there just type top. You should be able to logon to the console with root access somehow.
     
  5. Shawn M

    Shawn M Basic Pleskian

    22
     
    Joined:
    Oct 16, 2009
    Messages:
    79
    Likes Received:
    0
    I logged in with root access and used "top". How can I look back in the history to find out what caused that spike?

    I think it just showed the real time current stats.
     
  6. BoiseComputer

    BoiseComputer Regular Pleskian

    28
    23%
    Joined:
    Apr 14, 2006
    Messages:
    143
    Likes Received:
    5
    Location:
    Boise, Idaho
    There is a utility called "atop". It may not be installed by default though. If you are on a 32 bit system you could install it using "rpm -Uvh http://3es.atomicrocketturtle.com/packages/atop/atop-1.23-8.art.i386.rpm" This ustility shows overall processor usage of programs over time.
     
  7. Shawn M

    Shawn M Basic Pleskian

    22
     
    Joined:
    Oct 16, 2009
    Messages:
    79
    Likes Received:
    0
    Hi, When I went to install that utility, I got this error:

    libtinfo.so.5 is needed by atop-1.23-8.art.i386

    What does that mean?
     
  8. BoiseComputer

    BoiseComputer Regular Pleskian

    28
    23%
    Joined:
    Apr 14, 2006
    Messages:
    143
    Likes Received:
    5
    Location:
    Boise, Idaho
    What operating system are you running? CentOS? You need ncurses-libs to be installed. If you are using CentOS you could try running "yum install ncurses-libs"
     
  9. Shawn M

    Shawn M Basic Pleskian

    22
     
    Joined:
    Oct 16, 2009
    Messages:
    79
    Likes Received:
    0
    I have Cent OS 5.4. I ran it and this is what I got.

    Excluding Packages from CentOS-5 - Addons
    Finished
    Excluding Packages from CentOS-5 - Base
    Finished
    Excluding Packages from CentOS-5 - Extras
    Finished
    Excluding Packages from CentOS-5 - Updates
    Finished
    Setting up Install Process
    No package ncurses-libs available.
    Nothing to do
     
  10. BoiseComputer

    BoiseComputer Regular Pleskian

    28
    23%
    Joined:
    Apr 14, 2006
    Messages:
    143
    Likes Received:
    5
    Location:
    Boise, Idaho
    Sorry about the delay in response. I did a little research on TOP and found that it will do what you want.

    Press shift-a to have it show you the processes using the most CPU over time.
     
Loading...