VPS diagnostics using atop

watch 2m, 44s
views 2

13:52, 14.05.2021

Article Content
arrow

  • What is atop?
  • How to install atop?
  • How to use atop?

If you want to monitor the load of your virtual private server on Linux, then you should pay attention to atop. This utility is recognized by many experts as one of the most functional and easy to use! Although, when getting to know atop, how to use it is still the main question. This article will help you figure it out!


What is atop?


The atop utility is a Linux-based program that monitors the load on servers at the moment and simplifies its administration. It is regularly updated and the latest version available is from December 2020. But remember: it only works over SSH. However, this is more than offset by the pluses of atop:


  • Processor, RAM, hard disk and network monitoring;


  • Percent indication of the load for each processed process;


  • Displaying the load by block devices and network interfaces;


  • Writing all information about changes to a log file in binary format;


  • Creation of snapshots of changes at specified intervals.


How to install atop?


Before describing how to use atop, let's understand how to install it and how to configure it. There is nothing difficult about this:


1. For Debian/Ubuntu:


  • Install: apt-get install atop


  • Launch: /etc/init.d/atop start


  • Auto launch: update-rc.d atop defaults


2. For CentOS:


  • installing EPEL repository: yum install epel-release


  • install atop: yum install atop


  • start: systemctl start atop


  • autostart: systemctl enable atop


Next, it remains to refer to the atop configuration file, which indicates the interval between the created load snapshots (in seconds), the path to the logs, the backup storage period (in days):


  • INTERVAL = N


  • LOGPATH = "/ var / log / atop"


  • keepdays = N


vps diagnostics using atop


How to use atop?


When you run the program, a split-screen appears in 2 parts. In the first screen, you will see data about the system, in the second - about active processes. Let's move on to the hotkeys that are most often needed when using atop and the atopsar log analyzer. They change the view of the screen, building active processes according to one or another attribute:


  • m: by the memory allocated to the processes;


  • d: by loading each process of the hard disk;


  • n: by distribution between network processes (patch required);


  • v: details about each process (user and start time);


  • u: from the most resource-intensive processes to the least;


  • g: return to the original display.


If you need not real-time data, but in a record of the past, then use the following command:


atop -r path to log file


The entire history is shown by default. But you can set the desired period of time in the command. To do this, add the following command after the log, where instead of YYYYMMDD specify the date, and instead of nn - hours, minutes and seconds:


/ atop_ YYYYMMDD -b nn: nn: nn -e nn: nn: nn


Press t to move forward between images, shift + t to return to the past. By default, the utility takes snapshots after 10 minutes, but you can change the period with the following command (NN is the number of seconds):


# atop -a -w /var/log/atop.log NN


If you have questions about VPS diagnostics, then such competent and attentive support as in HostZealot is what you might've been looking for. We will always tell you how to use atop or how to connect to servers via RDP, but most importantly, they will offer you a reliable hosting of your site!

Share

Was this article helpful to you?

VPS popular offers

-10%

CPU
CPU
10 Xeon Cores
RAM
RAM
64 GB
Space
Space
300 GB SSD
Bandwidth
Bandwidth
Unlimited
KVM-SSD 65536 Linux

181.5 /mo

/mo

Billed annually

-8.4%

CPU
CPU
4 Xeon Cores
RAM
RAM
2 GB
Space
Space
75 GB SSD
Bandwidth
Bandwidth
Unlimited
10Ge-wKVM-SSD 2048 Windows

37.4 /mo

/mo

Billed annually

-12.8%

CPU
CPU
3 Xeon Cores
RAM
RAM
1 GB
Space
Space
50 GB SSD
Bandwidth
Bandwidth
1 TB
wKVM-SSD 1024 Metered Windows

17 /mo

/mo

Billed annually

-9.7%

CPU
CPU
10 Xeon Cores
RAM
RAM
64 GB
Space
Space
300 GB SSD
Bandwidth
Bandwidth
Unlimited
wKVM-SSD 65536 Windows

187.5 /mo

/mo

Billed annually

-16.2%

CPU
CPU
4 Xeon Cores
RAM
RAM
4 GB
Space
Space
50 GB SSD
Bandwidth
Bandwidth
60 Mbps
DDoS Protected SSD-KVM 4096 Linux

67 /mo

/mo

Billed annually

CPU
CPU
8 Epyc Cores
RAM
RAM
32 GB
Space
Space
200 GB NVMe
Bandwidth
Bandwidth
Unlimited
Keitaro KVM 32768
OS
CentOS
Software
Software
Keitaro
/mo

Billed monthly

-21.4%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
500 GB
wKVM-SSD 8192 HK Windows

67 /mo

/mo

Billed annually

-10%

CPU
CPU
4 Xeon Cores
RAM
RAM
2 GB
Space
Space
30 GB SSD
Bandwidth
Bandwidth
Unlimited
10Ge-KVM-SSD 2048 Linux

30.3 /mo

/mo

Billed annually

-10%

CPU
CPU
6 Epyc Cores
RAM
RAM
16 GB
Space
Space
150 GB NVMe
Bandwidth
Bandwidth
Unlimited
KVM-NVMe 16384 Linux

60.5 /mo

/mo

Billed annually

-9.4%

CPU
CPU
8 Epyc Cores
RAM
RAM
32 GB
Space
Space
200 GB NVMe
Bandwidth
Bandwidth
Unlimited
wKVM-NVMe 32768 Windows

102.8 /mo

/mo

Billed annually

Other articles on this topic

cookie

Accept cookies & privacy policy?

We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the HostZealot website.