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
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
and if your linux centos version is 64bit use this instead:
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
for using htop you can simply run htop command
also there are some other options for example the delay time that is -d
That the above will delay the refresh time to 2 seconds
Leave a comment if you have any questions or comments
http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/htop-0.9-1.el6.rf.i686.rpm
Related posts:
Hi Farzin
Thanks for your comment
this post is for about 4 months ago and in they may have released this new version
and the guideline for installing the latest htop that you provided is related to building htop from the source by using make and make install that for some people it is so easy for achieving so by using the rpm package
I will provide the latest version for both 32bit and 64bit OS with the both rp and building from the source soon
Thanks
Hi, thanks for the article. I was looking for something better than top and htop will work.. The first method worked for me smoothly.
Hi, Thank You too for your great feedback
YEs it is about two year that I am suing htop instrad of top
htop shows every thing better
better system cpu and ram usage indication and more…
I’m so glad that I could be of assistance
Thanks
Excellent notes, thanks for posting.
Just a quick note: htop delay is in tenths of a second. Therefore, if you run:
htop -d 2
It will update 5 times per second, not every two seconds as suggested.
Hi
Thanks for your such attention
I Will update the post accordingly
Thanks
3:17 am
Hi dear wooshka
i found that the latest rpm version for htop is 0.7.1 , but htop 0.8.3 is available for download in sourceforge.
so here is its installation for your dear visitors .
i have downloaded the default sourceforge package in my cents os 5.4 64 bit and its working fine .
after downloading the file from source forge with wget
extract it with :
tar xzvf htop-0.8.3.tar.gz
then
cd htop-0.8.3
then
./configure
if no error is returned then
make
and after it is completed use
make install
now u can access htop with
# htop
thanks in advanced