Root cause

Why is my server slow? 5 reasons and a 10-minute checklist

Server slow? It is almost always memory, disk, one process, the database or a recent change. Five commands, in order, tell you which in 10 minutes.

By , Founder of Opservo (LinkedIn) · Updated

In short

A slow server is almost always slow for one of five reasons: it is out of memory and swapping, the disk is full or failing, one process is saturating CPU or I/O, a database query got expensive as data grew, or something changed in the last deploy. Check them in that order with uptime, free, df, top and journalctl; the first number that looks wrong is usually the cause.

What are the five usual causes?

  • •Memory pressure: free memory near zero, swap in use, the OOM killer in the kernel log. Symptom: everything is slow, not one thing
  • •Disk: over 90 percent full, inodes exhausted, or I/O errors from a failing drive. Symptom: writes stall, logs stop, MySQL slows
  • •A hot process: one worker at 100 percent CPU, a backup job, a runaway cron, a crypto-miner after a compromise
  • •The database: a query that was fine at 10,000 rows and is not at 10 million; connections at the limit; Redis evicting
  • •A change: a deploy, a package upgrade, a config edit, a certificate renewal that restarted a service, minutes before the slowdown

On a cloud VPS there is a sixth: CPU steal. When the host machine is oversold, your virtual CPU waits for a physical one, and the server is slow while every graph inside it looks normal. The st column in top or vmstat shows it.

What is a bad number? Healthy vs slow, side by side

SignalWhere to read itHealthyExplains a slow server
Load averageuptime (compare with nproc)Below the core countAbove the core count for minutes; 2× is overloaded
Available memoryfree -m, the available columnMore than 15 percent of RAMUnder 5 percent, or swap in use and growing
Swappingvmstat 1 5, the si and so columns0Non-zero on every line: the box is paging
I/O waittop (wa) or iostat -x 1 3Under 5 percentAbove 20 percent, or await above 20 ms on an SSD
Disk spacedf -h and df -iUnder 85 percentOver 95 percent, or inodes at 100 percent
CPU stealtop (st) or vmstat (st)0–2 percentAbove 10 percent: the host, not your server, is the problem
OOM killsdmesg -T | grep -i "killed process"NoneAny in the last hour

Thresholds that separate a busy server from a slow one

If every row is healthy and the site is still slow, the slowness is in the application or the database: read the slow-query log and the web server’s upstream response times next.

How do you tell them apart quickly?

On the box, the classic sequence is uptime, free -m, df -h, top sorted by CPU then memory, dmesg for OOM and I/O errors, and the slow-query log. That takes an experienced person ten minutes and a developer an hour, at the worst time.

Opservo does the same sequence continuously. Every heartbeat carries system, process, disk, kernel-log and database facts; the rules engine attributes the slowdown to a category with a confidence level, and the incident timeline puts it next to what changed on the server in the same window.

In what order do you check, on the box?

If you are at a terminal, narrow it down in this order so you do not spend an hour on the wrong resource. One command per step; stop at the first one that explains the symptom.

StepCommandWhat you are looking for
1. Load vs coresuptime; nprocLoad above 1× the core count is saturation, above 2× is overloaded. Load 8 on an 8-core box is full; on a 2-core box it is an emergency
2. Memory and swapfree -m; vmstat 1 5Available memory near zero and swap in use: the box is paging and every process is slow, not one
3. Disk space and I/O waitdf -h; df -i; iostat -x 1 3A mount over 90 percent, inodes exhausted, or %iowait and await climbing: writes stall for everyone
4. The processtop -o %CPU, then top -o %MEMOne worker at 100 percent, a backup or cron job, a leaking app: the culprit is usually in the top three
5. What changedjournalctl --since -1h -p err; dmesg -T | tail; ls -lt /var/log | headA deploy, a restart loop, OOM kills, a log that stopped rotating, minutes before the slowdown

The five-minute order of operations for a slow Linux server

The fastest path to a fix is almost always "what changed?", not "what is the metric?". Most sudden slowness has a cause you can name: a deploy, a traffic spike, a disk filled by a log that stopped rotating, a service crashing and restarting in a loop.

What does an answer look like?

A real example from the product: "/var will fill in about 6 days. Docker JSON logs are growing 3.1 GB per day because nginx access logs are not rotating." followed by a Fix button that adds the logrotate rule and prunes the existing logs. Or: "MySQL is spending most of its time on one query pattern against orders without an index on customer_id; 14 queries over 5 seconds in the last hour."

How do you fix it without SSH?

Every finding carries the runnable command. On servers where remote actions are enabled, the dashboard runs it with confirmation and an audit record. Resolve-with-AI goes further: it proposes the smallest reversible step, runs it on approval, reads the result and decides the next step, and asks before anything destructive. The fix that worked is remembered as a runbook for the next server with the same problem.

Last updated 2026-10-28.

FAQ

Related questions

Can Opservo tell me which process is slowing the server?+

Yes. The processes collector reports CPU and memory per PID on every heartbeat, and the server page shows the live top consumers with the service or container they belong to.

Does it detect memory leaks?+

Yes. The Watchdog watches server memory over time and raises "memory is climbing steadily (possible leak)" before the OOM killer acts, and anomaly detection flags metrics that are unusual for that server at that time of day. The processes view shows which process holds the memory.

What if the slowness is in the database?+

MySQL, Redis and PostgreSQL insights include slow-query patterns with literals stripped, long-running statements, buffer-pool hit rate, connection saturation and eviction policy, with the fix for each finding.

Can I ask in plain English?+

Yes. The chat is pinned to a server and answers from its live facts and recent logs, for example "why was web-01 slow at 3 a.m.?", with the data sources it used listed.