How to diagnose a mysterious process that’s taking too much CPU, memory, IO, etc in Linux OS?
Tech Junction Answered question August 17, 2023
- # vmstat – reports information about processes, memory, paging, block IO, traps, and CPU activity.
- # iostat – reports CPU and input/output statistics of the system.
- # netstat – displays statistical data related to IP, TCP, UDP, and ICMP protocols.
- # lsof – lists open files of the current system.
- # pidstat – monitors the utilization of system resources by all or specified processes, including CPU, memory, device IO, task switching, threads, etc.
The diagram below illustrates helpful performance observability tools in a Linux system:
Tech Junction Answered question August 17, 2023