How to install Htop on CentOS / Ubuntu VPS and check CPU usage tutorial

888u

Last update at :2024-05-17,Edit by888u

Bricklayer has strict CPU limits. If our VPS exceeds the CPU usage limit, it will be suspended. There are three opportunities to unblock within a year. If you are suspended more than three times, you can only wait until the following year to unblock. Therefore, we still need to pay more attention not to exceed the CPU limit during use. If our VPS accidentally exceeds the CPU usage limit and is suspended, although it can be temporarily unblocked, we still need to know why this is the case, so today we will introduce how to check the CPU usage. Although the top command can also check, but It doesn’t look so comfortable and intuitive. In this article we will introduce viewing through the htop command.

Install htop command

Generally speaking, everyone may be familiar with using top to view VPS resource usage, but top is cumbersome to view and the page is not very friendly, so it is recommended to use htop, which can display clearer statistical results. htop can customize the sorting results and can also be operated directly using the mouse, which is very convenient.

Installation method:

CentOS:

Installation on CentOS is more troublesome. It is recommended to try method one first, and if it fails, try method two.

Method 1:

yum -y install epel-release
yum -y update
yum -y install htop

If method one fails and prompts that there is no htop, then continue to try method two:

yum -y install ncurses-devel wget
wget http://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz
tar xvfvz htop-2.0.2.tar.gz
cd htop-2.0.2
./configure --disable-unicode && make && make install

After the installation is complete, enter htop to check whether the installation is successful. Generally speaking, there is no problem.

Debian / Ubuntu:

apt install -y htop

Use the htop command to check resource usage such as CPU

After entering htop and pressing Enter, you can see the htop page. The details are shown in the figure below. You can click CPU to sort the processes according to CPU, and you can see which processes occupy particularly high CPU. In addition, click on MEM to sort the memory to see which process consumes the most memory, and so on.

Bricklayer discount code: BWH3HYATVBJW, discount 6.58%, available everywhere

Bricklayer USA cn2 gia, Japan Softbank, Netherlands AS9929, 2.5~10Gbps bandwidth

Memory CPU SSD Traffic Bandwidth Price Purchase
1G 2 cores 20G 1.0T/month 2.5G $50/quarter Link
2G 3 cores 40G 2.0T/month 2.5G $90/quarter Link
4G 4 cores 80G 3.0T/month 2.5G $57/month Link
8G 6 cores 160G 5.0T/month 5.0G $87/month Link
16G 8 cores 320G 8.0T/month 10G $160/month Link
32G 10 cores 640G 10.0T/month 10G $290/month Link
64G 12 cores 1280G 12.0T/month 10G $550/month Link

Bricklayer Hong Kong computer room VPS, 1Gbps cn2 gia

Memory CPU Hard disk Traffic Price Purchase
2G 2 cores 40G 500G/month $90/month Link
4G 4 cores 80G 1.0T/month $156/month Link
8G 6 cores 160G 2.0T/month $300/month Link
16G 8 cores 320G 4.0T/month $590/month Link

Bricklayer Meixi cn2 gt vps

Bricklayer Meixi cn2 gt vps test IP: 65.49.215.48

Memory CPU SSD Traffic Bandwidth Price Purchase
1G 1 core 20G 1.0T/month 1G $50/year Link
2G 1 core 40G 2.0T/month 1G $100/year Link
4G 2 cores 80G 3.0T/month 1G $60/quarter Link
8G 2 cores 160G 5.0T/month 1G $40/month Link
16G 3 cores 320G 8.0T/month 1G $80/month Link
16G 3 cores 320G 12T/month 1G $100/month Link
16G 3 cores 320G 16T/month 1G $130/month Link

Bricklayer Network Test

  • United States cn2 gia: 162.244.241.103/104/105/106/107
  • SoftBank Japan: 185.212.59.148/149/150/151/152
  • Holland Unicom: 104.255.65.1, 104.255.64.1, 104.255.66.1
  • Hong Kong cn2 gia: 93.179.124.167/168/169/170/171/172

Recommended site search: Foshan high defense server, IP segment query, domain name registration process, US server rental, US virtual host, permanent free vps cloud host, PHP space purchase, US server rental website, address check by IP, registration space

How to install Htop on CentOS / Ubuntu VPS and check CPU usage tutorial

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码