Skip to main content
Published on November 23, 2026 Your Linux VPS is slow: pages take ages to load, SSH lags, a backup never ends. Before you touch the configuration or change plans, find out which resource is holding things up. CPU, memory, disk and network each call for a different fix. This guide follows the order of a diagnosis, on Debian, Ubuntu, AlmaLinux and Rocky Linux. Each section gives the symptom, the command that confirms it and what to do next. Ten minutes are enough to know where to look.

Symptom, indicator, cause, action

Summary as of November 23, 2026:

Install the tools

vmstat, free, top and ps ship with the system. mpstat, pidstat, iostat and sar come from the sysstat package:
Commands with an interval (1 5 = one sample per second, five times) measure what is happening right now. Run them while the server is slow, not afterwards.

Read the load average of a Linux VPS

Symptom. uptime shows a load that looks high.
What it really measures. On Linux, the load average counts tasks ready to run (state R) and tasks waiting for disk I/O (state D), as the proc_loadavg(5) man page states. A high load does not necessarily mean a saturated CPU: a slow disk can cause it too. Compare the load with the output of nproc. A load close to the vCPU count is normal under activity. If it is clearly above, move on to vmstat to see whether tasks are waiting for the CPU or for the disk. The trend matters too: a 1-minute value far above the 15-minute one means a spike is starting.

vmstat 1: the first triage

vmstat prints one line per second covering CPU, memory, swap and disks:
The first line is an average since boot: skip it. Read the next ones: The rest of the guide follows each lead.

Saturated CPU: which process is using it

Symptom. r exceeds the vCPU count, us or sy approach 100%. Confirm. mpstat shows the load on each vCPU. One vCPU at 100% while the others sit idle points to an application that only works on one core:
Find the process. pidstat -u measures usage over the interval, which is more reliable than the snapshot ps gives:
The %wait column of pidstat shows how long a process waits for its turn on the CPU. High on several processes, it confirms there is more work than vCPUs. In top, the P key sorts by CPU and 1 shows each vCPU separately. Act. A scheduled job that lands at peak time can be moved. A heavy batch can be slowed with nice so interactive services keep the upper hand:
If the load is legitimate and constant, you need more vCPUs.

CPU steal: time taken by the hypervisor

Symptom. The CPU looks busy, yet no process accounts for the load. Confirm. Look at the st column of vmstat, the st value on the %Cpu(s) line of top, or %steal in mpstat -P ALL 1 5. The top man page defines it as time “stolen from this vm by the hypervisor”: your vCPUs were ready to work and had to wait. Act. Record the output of mpstat -P ALL 1 10 while it happens, with the time, and send it to support. Those figures let us analyse the situation precisely.

Slow disk: iowait, iostat and state D

Symptom. The server crawls, the load rises, but the CPU is mostly idle. vmstat shows high wa and non-zero b. Confirm. iostat -x gives detailed statistics for each disk:
%util close to 100% means saturation on a disk that serves requests one at a time. The iostat man page is explicit: on an SSD or NVMe drive, which serves many in parallel, the figure does not reflect the real limit. Rely instead on r_await, w_await and aqu-sz rising together.
Blocked processes. A process in state D is waiting for I/O and cannot be interrupted. List them:
Find who reads or writes. pidstat -d attributes I/O to each process. Run it with sudo to see every user’s processes:
The iodelay column shows time spent waiting for the disk: that is the process that suffers, not always the one that causes it. The culprit is the one whose kB_wr/s or kB_rd/s dominates. Act. The usual causes: a backup or rsync in the middle of the day, a database without indexes scanning whole tables, overly verbose logs, a swapping system (see the next section). A background job can step aside with ionice:

Not enough RAM: free, swap and the OOM killer

Read free -h

Ignore the free column. Linux fills free memory with disk cache (buff/cache) and hands it back as soon as an application asks. The column that matters is available: according to the free man page, it estimates how much memory is available for starting new applications without swapping. A low available value and a growing used swap figure mean you are really short of memory.

Is the system swapping?

Used swap is not a problem in itself: the kernel parks unused pages there. The problem is constant back and forth:

Who is using the memory

In pidstat -r, a high majflt/s flags a process that keeps reading back from disk pages it no longer holds in memory. systemd-cgtop groups usage by service, which helps when an application spawns dozens of processes (PHP-FPM, workers):

Has the OOM killer struck?

When memory truly runs out, the kernel kills a process to save the system. It records it in its log:
A line such as Out of memory: Killed process 1234 (mariadbd) names the process that was killed. A service that restarts on its own, or a database that “crashes” without an application error, often has this explanation. Act. Shrink the memory of the growing service: MySQL or MariaDB buffer pool size, PHP-FPM pm.max_children, number of workers. To keep one service from taking the whole server down, systemd can give it a ceiling so everything else keeps running:
Adjust the service name to your system. If memory is simply too tight for your applications, more RAM is the real answer.

PSI pressure: CPU, memory and I/O at a glance

PSI (Pressure Stall Information) measures how long tasks were held up for lack of CPU, memory or I/O. It is the most direct answer to “what is slowing me down?”. It has been available since kernel 4.20.
Each file has two lines:
  • some: share of time when at least one task was waiting for the resource;
  • full: share of time when all active tasks were waiting at once. According to the kernel documentation, this line is undefined for the CPU at system level and reads zero there.
avg10, avg60 and avg300 are percentages over 10 seconds, 1 minute and 5 minutes; total accumulates stall time in microseconds. The resource with the highest avg60 is your bottleneck. A memory full value that stays above zero means the system spends its time reclaiming memory. With cgroup v2, each service has its own files. For MariaDB, for example:
If /proc/pressure does not exist, your kernel has PSI disabled by default. That is the case for kernels built with CONFIG_PSI_DEFAULT_DISABLED, such as the Red Hat family. Check, then enable it at the next boot with the psi=1 parameter:

Slow network: throughput, errors, retransmissions

Symptom. The server is idle, but pages arrive slowly or transfers stall. Measure throughput. sar shows live traffic per interface:
Read the error counters. Find the interface name first, then its counters:
TCP retransmissions. Retransmitted segments point to losses along the path. Listen queue overflows point to an application that does not accept connections fast enough:
Run nstat again a minute later and compare: the increase matters, not the total. A rising TcpExtListenOverflows points to the application (not enough workers), not to the network. Act. Measure real throughput with a speed test. If the VPS answers fast but the application is slow, look at its remote dependencies: external API, database on another server, DNS resolution.

Optimise, or move to a larger plan

The diagnosis ends with one of these answers: To change plans, open your VPS page in the console and click Change plan: the console lists the eligible plans. Your data and system stay in place, with no reinstall. The ranges and their specifications are on the VPS offers page, and our article on 64 GB RAM VPS plans walks through the upgrade step by step.
Take a snapshot before changing the configuration of a database or a critical service: you keep a one-click way back.

Common pitfalls

Trusting the load average alone. It mixes waiting for the CPU and waiting for the disk. vmstat tells them apart in one second. Reading the free column of free -h. “Free” memory close to zero is normal: the cache uses it. Look at available. Keeping the first line of vmstat or iostat. It is an average since boot, not the current state. iostat -y drops it. Measuring after the fact. A five-minute slowdown leaves nothing in vmstat an hour later. Cumulative counters (PSI avg300, the kernel log for the OOM killer) keep a slightly longer trace. Believing %util on NVMe. At 100%, a disk that serves requests in parallel can still absorb more. Look at latency. Mistaking the victim for the culprit. The process waiting on the disk (high iodelay) is not necessarily the one saturating it (high kB_wr/s).

Going further

Have a question about a server hosted with us? Our team is available from your client area.