ByteByteGo Newsletter

Share this post

How to diagnose a mysterious process that’s taking too much CPU, memory, IO, etc

blog.bytebytego.com

How to diagnose a mysterious process that’s taking too much CPU, memory, IO, etc

Alex Xu
Mar 7, 2022
13
Share this post

How to diagnose a mysterious process that’s taking too much CPU, memory, IO, etc

blog.bytebytego.com

Popular interview question: how to diagnose a mysterious process that’s taking too much CPU, memory, IO, etc?

The diagram below illustrates helpful tools in a Linux system. 

🔹‘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.

Credit: Diagram by Brendan Gregg

Share this post

How to diagnose a mysterious process that’s taking too much CPU, memory, IO, etc

blog.bytebytego.com
Comments
TopNewCommunity

No posts

Ready for more?

© 2023 ByteByteGo
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing