Linux & VPS

How to Check CPU, RAM & Disk Usage on a Linux Server

server is slowhigh CPUdisk full
5 min read Updated 12 June 2026 ESAGAMES Team

When a server feels slow or a game lags, the first job is to see what's using the resources. These four commands tell you in seconds.

CPU & memory in real time: top / htop

top is on every server; htop is the friendlier colour version (install it if you can). Both show a live list of processes sorted by CPU, so you can spot the hog:

top            # press 'M' to sort by memory, 'P' by CPU, 'q' to quit
htop           # nicer UI; arrow keys + F9 to kill a process

Memory at a glance: free

free -h shows total, used and available RAM in human-readable units:

free -h
#               total        used        free      available
# Mem:           7.7Gi       3.1Gi       1.2Gi         4.3Gi
Look at "available", not "free"

Linux uses spare RAM for cache, so "free" looks low on a healthy server. The "available" column is the real figure — that's how much your apps can still use.

Disk space: df & du

df -h shows how full each disk is. If one is at 100%, that alone can crash services:

df -h                      # usage per filesystem
du -sh /home/* | sort -h   # which folders are biggest

Disk I/O: is the disk the bottleneck?

High %wa (I/O wait) in top means processes are waiting on the disk — a classic cause of lag on slow storage. iostat (from sysstat) shows per-disk activity.

Quick triage order

  1. htop / top — what's using the CPU?
  2. free -h — is RAM exhausted (low "available")?
  3. df -h — is a disk full?
  4. High %wa in top — is storage the bottleneck?
Slow server? top, free, df — in that order. Ninety seconds tells you whether it's CPU, RAM or disk.

NVMe-backed game servers

Slow disks cause lag. Our servers run on fast NVMe with high-clock CPUs — so resources are never the bottleneck.

See hosting
FAQ

Frequently asked questions

Why is my "free" memory so low on Linux?

Linux deliberately uses unused RAM as disk cache to speed things up. That memory is instantly reclaimable, so look at the "available" column in free -h, not "free".

How do I find what's using all my CPU?

Run htop (or top and press P). The process at the top of the list is your biggest CPU user. For game servers it's usually the game process itself when full.

What does high I/O wait mean?

A high %wa value means the CPU is idle but waiting for the disk. It points to slow storage or too much disk activity — a common cause of lag that more CPU won't fix. NVMe storage solves most of it.

Knowledge base

Related articles

Skip the troubleshooting

Managed, protected hosting in Frankfurt — we handle the Linux, the network and the DDoS so you don't have to.

Payments Secure checkout with cards, banking apps and digital wallets.

Choose the payment flow that fits your stack and region without leaving the platform.

Pay by Zen Visa Mastercard Paysafecard PaysafeCash Skrill Trustly Bancontact UnionPay iDeal WebMoney