Today we looked at some troubleshooting and monitoring tasks. We looked up the following sections:
Commands to be used for Monitoring:
- Disk
- RAM/ Memory
- CPU
- Network
- Disk I/O
- Network I/O
Commands We Must Practice:
iostat
- used to monitor system input/output (I/O) devices (physical and logical) that are loaded, by observing the time for which these devices are active.
iotop
- used to display and monitor the disk IO usage details and even gets a table of existing IO utilization by the process.
top
- used tool for displaying system-performance information
- shows administrators which processes are consuming processor and memory resources
htop
- to determine the cause of load by each process.
- used to troubleshoot and kill a process that is utilizing excessive server resources
lsblk
- to display details about block devices.
- Displays block devices except ram disk.
dstat
- used to retrieve information or statistics form components of the system such as network connections, IO devices, or CPU, etc
df –h
- shows the file system disk space statistics in “human-readable” format, such as in bytes, megabytes, and gigabytes.
df -m
- shows the file system disk space statistics in megabytes.
RAM/ Memory Commands:
free
free -h
- displays total, used, free, shared memory.
glances
- All information is shown here/ summary
iftop
- used to track resource usage on your system