Posted inTechno Guide

Linux Server Monitoring and Troubleshooting

Today we looked at some troubleshooting and monitoring tasks. We looked up the following sections:

Commands to be used for Monitoring:

  1. Disk
  2. RAM/ Memory
  3. CPU
  4. Network
  5. Disk I/O
  6. Network I/O

Commands We Must Practice:

iostat

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

iotop
  • used to display and monitor the disk IO usage details and even gets a table of existing IO utilization by the process.

top

top
  • used tool for displaying system-performance information
  • shows administrators which processes are consuming processor and memory resources

htop

htop

 

  • to determine the cause of load by each process. 
  • used to troubleshoot and kill a process that is utilizing excessive server resources

lsblk

lsblk
  • to display details about block devices. 
  • Displays block devices except ram disk.

dstat

dstat
  • used to retrieve information or statistics form components of the system such as network connections, IO devices, or CPU, etc

df  –h

df -h
  • shows the file system disk space statistics in “human-readable” format, such as in bytes, megabytes, and gigabytes.

df  -m

df  -m
  • shows the file system disk space statistics in megabytes.

RAM/ Memory Commands:

free

free

free -h

free -h 
  •  displays total, used, free, shared memory.

glances

glances
  •    All information is shown here/ summary

iftop

iftop
  •  used to track resource usage on your system

Leave a Reply

Your email address will not be published. Required fields are marked *