DEV Community

Cover image for How to Check Server Resource Usage: CPU, RAM, and Disk Explained
Shannon Dias
Shannon Dias

Posted on

How to Check Server Resource Usage: CPU, RAM, and Disk Explained

Every developer has been there: your application slows down, API requests start timing out, or the container completely crashes.

When things go wrong, you don't always have a shiny APM or heavy third-party monitoring dashboard configured. Knowing how to drop into a raw SSH terminal or PowerShell session to diagnose the problem using built-in system tools is a superpower.

Here is a quick mental map of what you need to look for when inspecting your infrastructure:

1. CPU Saturation

High CPU usage isn't always caused by heavy calculations. Using utilities like top or htop, check your I/O wait (wa). If your CPU cores are idling but your I/O wait is high, your bottleneck isn't the processor—it's your disk storage struggling to keep up with reads and writes.

2. The RAM Illusion

Running free -h on a Linux box can be frightening because the "free" column looks incredibly low. But remember: Linux uses unallocated RAM for disk caching. The metric that actually dictates if your app is about to crash due to an Out-Of-Memory (OOM) error is the available column.

3. Disk Infrastructure Squeezes

When a local partition hits 90% storage capacity, databases throw errors and log writes stop dead. Beyond raw space (df -h), you must track Disk I/O utilization using tools like iostat -x 1 to ensure disk latency isn't dragging down application layer performance.


We put together a comprehensive, copy-paste-ready guide breaking down these exact parameters, complete with healthy operating thresholds and automated PowerShell scripts for Windows environments.

🔧 Read the full guide on Fit Servers:
https://www.fitservers.com/tutorials/howto/check-server-resource-usage-cpu-ram-disk/

Top comments (0)