This guide explains monitoring system resource usage using atop over a specified time. Atop command is a tool for monitoring system resources in Linux. Lots of information associated with the amount of load on the system’s assets at the process level is displayed. Mastery of this tool unveils limitless benefits.

Follow the steps-

Installation & Configuration-

  1. Log in to the Plesk server via SSH.
  2. Install the atop set-
  3. For distributions based on CentOS/RHEL-
    # yum install atop
  4. For distributions based on Debian/Ubuntu-
    # apt-get install atop
  5. Change the monitoring interval to 60 seconds (default is 600 sec)-
  6. For CentOS/RHEL-based distributions-
    # sed -i ‘s/600/60/’ /etc/sysconfig/atop
  7. For Debian/Ubuntu-based distributions-
    # sed -i ‘s/600/60/’ /etc/default/atop
  8. For Debian/Ubuntu-based distributions-
    # sed -i ‘s/600/60/’ /etc/default/atop
  9. Start atop service-
    # service atop restart

Note: In Debian/Ubuntu-based distributions, atop generates a cron task by default, ensuring automatic initiation of logging at midnight if it is not already running.

Usage-

  1. Show the produced atop log files-
    # ls -l /var/log/atop/
  2. To check the collected data, execute-
    # atop -r /var/log/atop/atop_*****
    where atop_***** is a file name from step 1.
  3. Use hotkeys to transit between intervals-
    1. t – move forward
    2. Shift + t – move backwards
    3. r – reset all counters
  4. To deactivate atop, execute-
    # service atop the stopFor Debian/Ubuntu-based distributions, remove the atop cron task-
    # rm -f /etc/cron.d/atop

This way, you can monitor system resource usage over a specified time using atop. Hope you grasped the article well and that you do not have any doubts. However, still, if you face any difficulty, contact our support staff at your earliest.

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

Remove Domain Name or Website from Control Panel

Managing domains is a routine task in any control panel. Whether you want to remove…

High load prevent slow backups

In this tutorial, we’ll explain to you how a high load creates a slow backup…

Noah’s Classifieds

Noah’s Classifieds is a system to create classified ad campaigns which also support e-commerce applications.…