{"id":11148,"date":"2019-03-09T22:11:08","date_gmt":"2019-03-09T22:11:08","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=11148"},"modified":"2019-03-09T22:11:08","modified_gmt":"2019-03-09T22:11:08","slug":"how-to-install-atop-to-monitor-logging-activity-of-linux-system-processes","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/09\/how-to-install-atop-to-monitor-logging-activity-of-linux-system-processes\/","title":{"rendered":"How to Install \u2018atop\u2019 to Monitor Logging Activity of Linux System Processes"},"content":{"rendered":"<p><strong>Atop<\/strong>\u00a0is a full screen performance monitor that can report the activity of all processes, even the ones that have been completed. Atop also allows you to keep daily log of system activities. The same can be used for different purposes, including analysis, debugging, pinpointing the cause of a system overload and others.<\/p>\n<h4>Atop Features<\/h4>\n<ol>\n<li>Check the overall resource consumption by all processes<\/li>\n<li>Check how much of the available resources have been utilized<\/li>\n<li>Logging of resource utilization<\/li>\n<li>Check resource consumption by individual threads<\/li>\n<li>Monitor process activity per user or per program<\/li>\n<li>Monitor network activity per process<\/li>\n<\/ol>\n<p>The latest version of Atop is\u00a0<strong>2.1<\/strong>\u00a0and includes following features<\/p>\n<ol>\n<li>New logging mechanism<\/li>\n<li>New key flags<\/li>\n<li>New Fields (counters)<\/li>\n<li>Bug fixes<\/li>\n<li>Configurable colors<\/li>\n<\/ol>\n<h3>Installing Atop Monitoring Tool on Linux<\/h3>\n<p><strong>1.<\/strong>\u00a0In this article, I will show you how to install and configure atop on Linux systems like RHEL\/CentOS\/Fedora and Debian\/Ubuntu based derivatives, so that you can easily monitor your system processes.<\/p>\n<h5>On RHEL\/CentOS\/Fedora<\/h5>\n<p>First you will need to\u00a0<a title=\"Enable EPEL Repository\" href=\"https:\/\/www.tecmint.com\/how-to-enable-epel-repository-for-rhel-centos-6-5\/\" target=\"_blank\" rel=\"noopener\">enable epel repository<\/a>\u00a0under RHEL\/CentOS\/ systems, in order to install atop monitoring tool.<\/p>\n<p>After you\u2019ve enabled epel repository, you can simple use the yum package manager to install atop package as shown below.<\/p>\n<pre># yum install atop\r\n<\/pre>\n<div id=\"attachment_12875\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Atop-Using-Epel.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12875\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Atop-Using-Epel.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Atop-Using-Epel.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Atop-Using-Epel-620x344.png 620w\" alt=\"Install Atop Using Epel Repo\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Install Atop Using Epel Repo<\/p>\n<\/div>\n<p>Alternatively, you may download direct atop rpm packages using following\u00a0<strong>wget<\/strong>\u00a0command and continue with the installation of atop, with the following command.<\/p>\n<pre>------------------ For <strong>32-bit<\/strong> Systems ------------------\r\n# wget http:\/\/www.atoptool.nl\/download\/atop-2.1-1.i586.rpm\r\n# rpm -ivh atop-2.1-1.i586.rpm\r\n\r\n------------------ For <strong>64-bit<\/strong> Systems ------------------\r\n# wget http:\/\/www.atoptool.nl\/download\/atop-2.1-1.x86_64.rpm\r\n# rpm -ivh atop-2.1-1.x86_64.rpm \r\n<\/pre>\n<div id=\"attachment_12876\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Atop-Using-RPM-Package.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12876\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Atop-Using-RPM-Package.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Atop-Using-RPM-Package.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Atop-Using-RPM-Package-620x344.png 620w\" alt=\"Install Atop Using RPM Package\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Install Atop Using RPM Package<\/p>\n<\/div>\n<h5>On Debian\/Ubuntu<\/h5>\n<p>Under Debian based systems, atop can be installed from the default repositories using apt-get command.<\/p>\n<pre>$ sudo apt-get install atop\r\n<\/pre>\n<div id=\"attachment_12877\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Atop-Under-Debian-Systems.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12877\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Atop-Under-Debian-Systems.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Atop-Under-Debian-Systems.png 749w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Atop-Under-Debian-Systems-620x345.png 620w\" alt=\"Install Atop Under Debian Systems\" width=\"620\" height=\"345\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Install Atop Under Debian Systems<\/p>\n<\/div>\n<p><strong>2.<\/strong>\u00a0After installing atop, make sure atop will start upon system start up, run the following commands:<\/p>\n<pre>------------------ Under RedHat based systems ------------------\r\n# chkconfig --add atop\r\n# chkconfig atop on --level 235\r\n<\/pre>\n<div id=\"attachment_12878\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Enable-Atop-at-System-Boot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12878\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Enable-Atop-at-System-Boot.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Enable-Atop-at-System-Boot.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Enable-Atop-at-System-Boot-620x344.png 620w\" alt=\"Enable Atop at System Boot\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Enable Atop at System Boot<\/p>\n<\/div>\n<pre>$ sudo update-rc.d atop defaults             [Under Debian based systems]\r\n<\/pre>\n<div id=\"attachment_12879\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Add-Atop-at-System-Boot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12879\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Add-Atop-at-System-Boot.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Add-Atop-at-System-Boot.png 669w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Add-Atop-at-System-Boot-620x74.png 620w\" alt=\"Add Atop at System Boot\" width=\"620\" height=\"74\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Add Atop at System Boot<\/p>\n<\/div>\n<p><strong>3.<\/strong>\u00a0By default\u00a0<strong>atop<\/strong>\u00a0will log all the activity on every\u00a0<strong>600<\/strong>\u00a0seconds. As this might not be that useful, I will change atop\u2019s configuration, so all the activities will be logged in interval of\u00a0<strong>60<\/strong>\u00a0seconds. For that purpose run the following command:<\/p>\n<pre># sed 's\/600\/60\/' \/etc\/atop\/atop.daily -i                [Under RedHat based systems]\r\n$ sudo sed 's\/600\/60\/' \/etc\/default\/atop -i              [Under Debian based systems]\r\n<\/pre>\n<div id=\"attachment_12881\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Change-Atop-Log-Interval.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12881\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Change-Atop-Log-Interval.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Change-Atop-Log-Interval.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Change-Atop-Log-Interval-620x344.png 620w\" alt=\"Change Atop Log Interval Time\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Change Atop Log Interval Time<\/p>\n<\/div>\n<p>Now that you have atop installed and configured, the next logical question is \u201c<strong>How do I use it?<\/strong>\u201d. Actually there are few ways for that:<\/p>\n<p><strong>4.<\/strong>\u00a0If you just run\u00a0<strong>atop<\/strong>\u00a0in terminal you will have top like interface, which will update every 10 seconds.<\/p>\n<pre># atop\r\n<\/pre>\n<p>You should see a screen similar to this one:<\/p>\n<div id=\"attachment_12884\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Atop-System-Process-Monitoring.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12884\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Atop-System-Process-Monitoring.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Atop-System-Process-Monitoring.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Atop-System-Process-Monitoring-620x344.png 620w\" alt=\"Atop System Process Monitoring\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Atop System Process Monitoring<\/p>\n<\/div>\n<p>You can use different keys within\u00a0<strong>atop<\/strong>\u00a0to sort the information by different criteria. Here are some examples:<\/p>\n<p><strong>5.<\/strong>\u00a0Scheduling information \u2013\u00a0<code>\u201cs\u201d<\/code>\u00a0key \u2013 shows scheduling information for the main thread of each process. Also indicates how many processes are in state \u201c<strong>running<\/strong>\u201d:<\/p>\n<pre># atop -s\r\n<\/pre>\n<div id=\"attachment_12885\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Scheduling-Information.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12885\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Scheduling-Information.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Scheduling-Information.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Scheduling-Information-620x344.png 620w\" alt=\"Shows Scheduling Information of Process\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Shows Scheduling Information of Process<\/p>\n<\/div>\n<p><strong>6.<\/strong>\u00a0Memory consumption \u2013\u00a0<code>\u201cm\u201d<\/code>\u00a0key \u2013 shows memory related information about all running processes The\u00a0<strong>VSIZE<\/strong>\u00a0column indicates the total virtual memory and the\u00a0<strong>RSIZE<\/strong>\u00a0shows the resident size used per process.<\/p>\n<p>The\u00a0<strong>VGROW<\/strong>\u00a0and\u00a0<strong>RGROW<\/strong>\u00a0indicate the growth during the last interval. The\u00a0<strong>MEM<\/strong>\u00a0column indicates the resident memory usage by the process.<\/p>\n<pre># atop -m\r\n<\/pre>\n<div id=\"attachment_12886\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Process-Memory-Information.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12886\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Process-Memory-Information.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Process-Memory-Information.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Process-Memory-Information-620x344.png 620w\" alt=\"Shows Process Memory Information\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Shows Process Memory Information<\/p>\n<\/div>\n<p><strong>7.<\/strong>\u00a0Show disk utilization \u2013\u00a0<code>\u201cd\u201d<\/code>\u00a0key \u2013 shows the disks activity on a system level (<strong>LVM<\/strong>\u00a0and\u00a0<strong>DSK<\/strong>\u00a0columns). Disk activity is shown as amount of data that is being transferred by reads\/writes (<strong>RDDSK<\/strong>\/<strong>WRDSK<\/strong>\u00a0columns).<\/p>\n<pre># atop -d\r\n<\/pre>\n<div id=\"attachment_12887\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Disk-Utilization.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12887\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Disk-Utilization.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Disk-Utilization.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Disk-Utilization-620x344.png 620w\" alt=\"Shows Disk Utilization\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Shows Disk Utilization<\/p>\n<\/div>\n<p><strong>8.<\/strong>\u00a0Show variable information \u2013\u00a0<code>\u201cv\u201d<\/code>\u00a0key \u2013 this option displays provides more specific data about the running processes like uid, pid, gid, cpu usage, etc:<\/p>\n<pre># atop -v\r\n<\/pre>\n<div id=\"attachment_12888\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-UID-PID-Information.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12888\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-UID-PID-Information.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-UID-PID-Information.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-UID-PID-Information-620x344.png 620w\" alt=\"Shows UID PID Information\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Shows UID PID Information<\/p>\n<\/div>\n<p><strong>9.<\/strong>\u00a0Show command of processes \u2013\u00a0<code>\u201cc\u201d<\/code>\u00a0key:<\/p>\n<pre># atop -c\r\n<\/pre>\n<div id=\"attachment_12889\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Command-Process.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12889\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Command-Process.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Command-Process.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Command-Process-620x344.png 620w\" alt=\"Shows Command Process\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Shows Command Process<\/p>\n<\/div>\n<p><strong>10.<\/strong>\u00a0Cumulative per program \u2013\u00a0<code>\u201cp\u201d<\/code>\u00a0key \u2013 the information shown in this window is accumulated per program. The most right column shows which programs are active (during the intervals) and the most left column shows how many process they have spawned.<\/p>\n<pre># atop -p\r\n<\/pre>\n<div id=\"attachment_12890\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Active-and-Spawned-Programs.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12890\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Active-and-Spawned-Programs.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Active-and-Spawned-Programs.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Active-and-Spawned-Programs-620x344.png 620w\" alt=\"Shows Active and Spawned Programs\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Shows Active and Spawned Programs<\/p>\n<\/div>\n<p><strong>11.<\/strong>\u00a0Cumulative per user \u2013\u00a0<code>\u201cu\u201d<\/code>\u00a0key \u2013 this screen shows which users were\/are active during the last interval and indicates how many processes each user runs\/ran.<\/p>\n<pre># atop -u\r\n<\/pre>\n<div id=\"attachment_12891\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-User-Processess.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12891\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-User-Processess.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-User-Processess.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-User-Processess-620x344.png 620w\" alt=\"Shows User Processes\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Shows User Processes<\/p>\n<\/div>\n<p><strong>12.<\/strong>\u00a0Network usage \u2013\u00a0<code>\u201cn\u201d<\/code>\u00a0key (requires\u00a0<strong>netatop<\/strong>\u00a0kernel module) shows the network activity per processes.<\/p>\n<p>To install and active\u00a0<strong>netatop<\/strong>\u00a0kernel module, you need to have following dependency packages installed on your system from the distributor\u2019s repository.<\/p>\n<pre># yum install kernel-devel zlib-devel                [Under RedHat based systems]\r\n$ sudo apt-get install zlib1g-dev                    [Under Debian based systems] \r\n<\/pre>\n<p>Next download the\u00a0<strong>netatop<\/strong>\u00a0tarball and build the module and daemon.<\/p>\n<pre># wget http:\/\/www.atoptool.nl\/download\/netatop-0.3.tar.gz\r\n# tar -xvf netatop-0.3.tar.gz\r\n# cd netatop-0.3\r\n<\/pre>\n<div id=\"attachment_12892\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Download-Netatop.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12892\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Download-Netatop.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Download-Netatop.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Download-Netatop-620x344.png 620w\" alt=\"Download Netatop Package\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Download Netatop Package<\/p>\n<\/div>\n<div id=\"attachment_12893\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Extract-Netatop.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12893\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Extract-Netatop.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Extract-Netatop.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Extract-Netatop-620x344.png 620w\" alt=\"Extract Netatop Files\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Extract Netatop Files<\/p>\n<\/div>\n<p>Go to the \u2018<strong>netatop-0.3<\/strong>\u2018 directory and run the following commands to install and build the module.<\/p>\n<pre># make\r\n# make install\r\n<\/pre>\n<div id=\"attachment_12894\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Netatop.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12894\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Netatop.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Netatop.png 805w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Install-Netatop-620x302.png 620w\" alt=\"Install Netatop Module\" width=\"620\" height=\"302\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Install Netatop Module<\/p>\n<\/div>\n<p>After netatop module installed successfully, load the module and start the daemon.<\/p>\n<pre># service netatop start\r\nOR\r\n$ sudo service netatop start\r\n<\/pre>\n<p>If you want to load the module automatically after boot, run one of the following commands depending on the distribution.<\/p>\n<pre># chkconfig --add netatop                [Under RedHat based systems]\r\n$ sudo update-rc.d netatop defaults      [Under Debian based systems] \r\n<\/pre>\n<p>Now check network usage using\u00a0<code>\u201cn\u201d<\/code>\u00a0key.<\/p>\n<pre># atop -n\r\n<\/pre>\n<div id=\"attachment_12896\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Network-Usage.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12896\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Shows-Network-Usage.png\" alt=\"Shows Network Usage\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Shows Network Usage<\/p>\n<\/div>\n<p><strong>13.<\/strong>\u00a0The directory where atop keeps its history files.<\/p>\n<pre># \/var\/log\/atop\/atop_YYYYMMDD\r\n<\/pre>\n<p>Where\u00a0<strong>YYYY<\/strong>\u00a0is the year,\u00a0<strong>MM<\/strong>\u00a0is the month and\u00a0<strong>DD<\/strong>\u00a0current day of the month. For example:<\/p>\n<pre>atop_20150423\r\n<\/pre>\n<p>All files created by\u00a0<strong>atop<\/strong>\u00a0are binary. They are not log or text files and only atop can read them. Note however that\u00a0<strong>Logrotate<\/strong>\u00a0can read and rotate those files.<\/p>\n<p>Let\u2019s say you wish to see todays logs beginning\u00a0<strong>05:05<\/strong>\u00a0server time. Simply run the following command.<\/p>\n<pre># atop -r -b 05:05 -l 1\r\n<\/pre>\n<div id=\"attachment_12897\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Check-Atop-Logs.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12897\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Check-Atop-Logs.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Check-Atop-Logs.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Check-Atop-Logs-620x344.png 620w\" alt=\"Check Atop Logs\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Check Atop Logs<\/p>\n<\/div>\n<p>The\u00a0<strong>atop<\/strong>\u00a0options are quite a lot and you may wish to see the help menu. For that purpose in the\u00a0<strong>atop<\/strong>\u00a0window simply use the \u201c<strong>?<\/strong>\u201d character to see list of arguments that atop can use. Here is list of most frequently used options:<\/p>\n<div id=\"attachment_12898\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Atop-Options.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12898\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Atop-Options.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Atop-Options.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/04\/Atop-Options-620x344.png 620w\" alt=\"Atop Options and Usage\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Atop Options and Usage<\/p>\n<\/div>\n<p>I hope you find my article useful and help you narrow down or prevent issues with your Linux system. In case you have any questions or would like to receive clarification for the usage of\u00a0<strong>atop<\/strong>, please post a comment in the comment section below.<\/p>\n<p>&nbsp;<br \/>\n<a href=\"https:\/\/www.tecmint.com\/how-to-install-atop-to-monitor-logging-activity-of-linux-system-processes\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Atop\u00a0is a full screen performance monitor that can report the activity of all processes, even the ones that have been completed. Atop also allows you to keep daily log of system activities. The same can be used for different purposes, including analysis, debugging, pinpointing the cause of a system overload and others. Atop Features Check &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/09\/how-to-install-atop-to-monitor-logging-activity-of-linux-system-processes\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Install \u2018atop\u2019 to Monitor Logging Activity of Linux System Processes&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11148","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=11148"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11148\/revisions"}],"predecessor-version":[{"id":11149,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11148\/revisions\/11149"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=11148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=11148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=11148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}