Skip to main content
If your VPS feels slow, or software complains that the disk is full, a few commands show you what’s using its resources. This guide shows you what to run and how to read the results.
On shared hosting, use cPanel instead. See Check disk and resource usage.
First, connect to your VPS with SSH, or open Console in the server panel.

Quick check

Your number of vCPUs is shown on the server panel in the Client Area, or run nproc.

Find what’s using the CPU and memory

Run top. The busiest programs are at the top of the list.
  • Press M to sort by memory, and P to sort by CPU.
  • Press q to quit.
For an easier view, install htop: apt install htop on Ubuntu or Debian, or dnf install htop on AlmaLinux, Rocky Linux or Fedora. Then run htop.

Find what’s filling the disk

1

List the biggest folders

Run:
The largest folders are at the bottom.
2

Look deeper

Repeat with the biggest folder, for example du -xh /var --max-depth=2 2>/dev/null | sort -h | tail -20.
Common space users:
Don’t delete files you don’t recognise, especially in /usr, /etc or /var/lib. Removing system or database files can stop your server from starting. Take a snapshot from the Snapshots tab first if you’re unsure.

If it keeps happening

  • Restart a stuck program rather than the whole server, for example systemctl restart nginx.
  • Your server may be too small for its work. You can move to a bigger plan from the service sidebar with Upgrade/Downgrade Options. See Upgrade or downgrade a plan.
HostCloud VPS is semi-managed: you look after the software on your server. See Support hours and scope. Still stuck? Open a ticket with your server’s IP address and the output of uptime, free -h and df -h.