There are times you want to have a better control over the system processes and usage and also having a better visual of RAM and CPU usage on your server.As You may already know there is a Linux command called top which will show the resources and users cpu usage but it is not good enough to find out every thing in a glance, That for example you should go to the top right to see cpu usage let say it is 50%, then you have to think of your self in your mind that how much it has used the cpu.But by using htop you can see CPU usage of each core colorful and easily.This third party application will work perfectly on Cpanel Centos Servers.

# whatis htop
htop                 (1)  – interactive process viewer

Install Htop from source instruction:

wget http://softlayer.dl.sourceforge.net/project/htop/htop/0.9/htop-0.9.tar.gz
tar xzvf htop-0.9.tar.gz
cd htop-0.9/
./configure
make
make install

centos 5

wget http://citylan.dl.sourceforge.net/project/htop/htop/0.8.3/htop-0.8.3.tar.gz
tar xzvf htop-0.8.3.tar.gz
cd htop-0.8.3
./configure
make
make install

Htop Installation Instruction from RPM

The following will guide you through the installation of this useful statistical software both on x82(32bit) & x64(64bit) centos servers

first ssh to your server and login as root

Htop installation on 64bit centos version 6 RPM Package

wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/htop-0.9-1.el6.rf.x86_64.rpm
rpm -i htop-0.9-1.el6.rf.x86_64.rpm

Htop installation on 32bit centos version 6 RPM Package

wget http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/htop-0.9-1.el6.rf.i686.rpm
rpm -i htop-0.9-1.el6.rf.i686.rpm

 

Htop installation on 64bit centos RPM Package

and if your linux centos version is 64bit use this instead:

wget http://packages.sw.be/htop/htop-0.8.3-1.el5.rf.x86_64.rpm
rpm -i htop-0.8.3-1.el5.rf.x86_64.rpm

Htop Installation on 32bit Centos RPM Package

wget http://packages.sw.be/htop/htop-0.8.3-1.rh9.rf.i386.rpm
rpm -i htop-0.8.3-1.rh9.rf.i386.rpm

If you encountered error such this
failed: No such file or directory
means that you do not have rpm installed so just rin the following command to install rpm and its needed packages

yum install rpm

 

How to Use htop

for using htop you can simply run htop command

htop

also there are some other options for example the delay time that is -d

htop -d 2

That the above will delay the refresh time to 2 seconds