Atop: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 26: | Line 26: | ||
Example: atop -r /var/log/atop/atop-20240615 -b12:00 | Example: atop -r /var/log/atop/atop-20240615 -b12:00 | ||
atop -r /var/log/atop/atop-20240615 -b20240612512:00 | atop -r /var/log/atop/atop-20240615 -b20240612512:00 | ||
</pre> | |||
==Live usage with ATOP== | |||
===Show CPU usage=== | |||
<pre> | |||
atop -c | |||
</pre> | </pre> | ||
Revision as of 15:29, 19 June 2024
How to install Atop
yum install atop
Change Default Intervals
Open /etc/default/atop and change LOGINTERVAL=600 to LOGINTERVAL=60 vi /etc/default/atop
Log Locations
Location: /var/log/atop Check available logs using: ls -lart /var/log/atop/
Check logs for a particular time
Syntax: atop -r path-to-log-file -bYYYYMMDDHH:MM Example: atop -r /var/log/atop/atop-20240615 -b12:00 atop -r /var/log/atop/atop-20240615 -b20240612512:00
Live usage with ATOP
Show CPU usage
atop -c