How to Check VPS Resource Usage (CPU, RAM & Disk)

Monitoring your VPS's resource usage helps you catch performance problems before they cause downtime, and tells you when it's time to upgrade your plan. This guide covers the essential built-in Linux commands — no extra monitoring stack required.

Checking CPU Usage

top

For a friendlier, colorized view (install if not present):

sudo apt install htop -y
htop

Press q to exit either tool.

Checking Memory (RAM) Usage

free -h

The available column is the most accurate indicator of memory actually free for new applications (it accounts for reclaimable cache).

Checking Disk Space

df -h

To see disk usage by directory (useful for finding what's filling up storage):

du -h --max-depth=1 /var | sort -hr

Checking Disk I/O

sudo apt install sysstat -y
iostat -x 2

Checking Network Usage

sudo apt install vnstat -y
vnstat

Checking System Load Average

uptime

The three numbers represent load average over 1, 5, and 15 minutes. As a rule of thumb, sustained values above your CPU core count indicate the server is overloaded.

Finding What's Consuming the Most Resources

Sort processes by CPU usage:

ps aux --sort=-%cpu | head -10

Sort by memory usage:

ps aux --sort=-%mem | head -10

Setting Up Ongoing Monitoring

For a quick historical view without a full monitoring stack:

sudo apt install sysstat -y
sudo systemctl enable --now sysstat

Historical CPU stats are then available via:

sar

When to Upgrade Your VPS Plan

  • Sustained load average above your core count
  • Available RAM regularly near zero with active swap usage
  • Disk usage consistently above 80–85%

Common Errors

htop/vnstat not found — these aren't installed by default on minimal images; install with apt install as shown above.

FAQ

What's a healthy CPU load for my VPS?
As a general guideline, a 1-minute load average below your number of CPU cores indicates headroom; consistently above it suggests the CPU is a bottleneck.

Related Articles

  • How to Find and Stop Processes Using Too Many Resources
  • How to Check and Manage Disk Usage on a Linux VPS
  • How to Choose the Right VPS Plan for Your Workload
  • vps monitoring, cpu usage, resource usage, htop, vps basics
  • 0 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

How to Connect to Your VPS via SSH (Windows, macOS & Linux)

SSH (Secure Shell) is the standard way to remotely access and manage a Linux VPS. This guide...

How to Create a New User with Sudo Access on a Linux VPS

Using the root account for everyday administration is risky — a single mistyped command can...

How to Reboot a Linux VPS Safely

Rebooting is sometimes required — after a kernel update, to apply certain configuration...

VPS Terminology: A Beginner's Glossary

New to VPS hosting? This glossary explains the most common terms you'll encounter while setting...

How to Choose the Right VPS Plan for Your Workload

Picking the wrong VPS size is one of the most common beginner mistakes — too small and your...