Atop – monitor system resources in Linux
Atop is an ASCII full-screen performance monitor for Linux that is capable of reporting the activity of all processes (even if processes have finished during the interval), daily logging of system and process activity for long-term analysis, highlighting overloaded system resources by using colors, etc. At regular intervals, it shows system-level activity related to the CPU, memory, swap, disks (including LVM) and network layers, and for every process (and thread) it shows e.g. the CPU utilization, memory growth, disk utilization, priority, username, state, and exit code.
In combination with the optional kernel module netatop, it even shows network activity per process/thread.
The command atop has some major advantages compared to other performance monitoring tools:
First you need to enable EPEL or RPMForge repository as described here to install atop. Type the following yum command:
Type the following command as root user:
To see active processes only
Pass the following option to sort your process:
-C sort processes in order of cpu-consumption (default)
-M sort processes in order of memory-consumption
-D sort processes in order of disk-activity
-N sort processes in order of network-activity
-A sort processes in order of most active resource (auto mode)
For more information about Atop see man page:
Atop is an ASCII full-screen performance monitor for Linux that is capable of reporting the activity of all processes (even if processes have finished during the interval), daily logging of system and process activity for long-term analysis, highlighting overloaded system resources by using colors, etc. At regular intervals, it shows system-level activity related to the CPU, memory, swap, disks (including LVM) and network layers, and for every process (and thread) it shows e.g. the CPU utilization, memory growth, disk utilization, priority, username, state, and exit code.
In combination with the optional kernel module netatop, it even shows network activity per process/thread.
The command atop has some major advantages compared to other performance monitoring tools:
- Resource consumption by all processes
- Utilization of all relevant resources
- Permanent logging of resource utilization
- Highlight critical resources
- Scalable window width
- Resource consumption by individual threads
- Watch activity only
- Watch deviations only
- Accumulated process activity per user
- Accumulated process activity per program
- Network activity per process
Install atop on RHEL/CentOS and Fedora linux
First you need to enable EPEL or RPMForge repository as described here to install atop. Type the following yum command:
# yum -y install atopInstall Atop on Debian/Ubuntu and Mint linux
# sudo apt-get install atop -yHow to use atop program
Type the following command as root user:
# atopExample output:
To see active processes only
# atop -aDisplay individual threads
# atop -yDisplay average-per-second i.s.o. total values
# atop -1Display memory-related process-info
# atop -mDisplay disk-related process-info
# atop -dDisplay network-related process-info
# atop -nDisplay scheduling-related process-info
# atop -sDisplay various process-info (ppid, user/group, date/time)
# atop -vDisplay command line per process
# atop -cSorting option
Pass the following option to sort your process:
-C sort processes in order of cpu-consumption (default)
-M sort processes in order of memory-consumption
-D sort processes in order of disk-activity
-N sort processes in order of network-activity
-A sort processes in order of most active resource (auto mode)
For more information about Atop see man page:
# man atop
0 comments:
Post a Comment