When a Linux server feels slow, the safest first move is not a reboot, a package upgrade, or a random tuning change. Those actions can erase the evidence and may only hide the problem for a few hours. Start by defining what “slow” means, preserve a small snapshot of the system, and work from broad resource pressure toward the affected application.
This checklist is designed for developers and small teams that need practical Linux server monitoring without deploying a large observability platform. Most checks use standard commands, but command availability and field names vary by distribution. Run read-only diagnostics first, use appropriate privileges, and avoid load-generating tests on production during busy periods.
1. Define the symptom before checking metrics
Record the time, affected users, service, request type, and duration. Is the whole host slow, or only one website, database query, SSH session, scheduled job, or remote office? Does the delay affect connection setup, application processing, or data transfer? A precise symptom keeps a normal metric from becoming a false suspect.
Measure from both sides where possible. For a web service, compare total response time with DNS, TCP connection, TLS, and time-to-first-byte measurements. For SSH, note whether the delay happens before the password prompt, after login, or only when running commands. Keep the server's timezone and clock in the record so application logs and system metrics can be aligned.
2. Preserve a quick system snapshot
Before changing anything, capture uptime, load, memory, filesystem usage, recent failures, and the busiest processes. A simple starting set is:
date --iso-8601=seconds
uptime
free -h
df -hT
df -ih
ps -eo pid,ppid,user,stat,%cpu,%mem,etime,comm --sort=-%cpu | head -20
systemctl --failed
journalctl -p warning --since "30 minutes ago"
Store the output with the incident notes rather than relying on terminal scrollback. If the server recovers before deeper checks begin, this snapshot may be the only evidence of a short-lived process spike, full filesystem, failed unit, or memory shortage.
3. Interpret load average in context
Load average is not a CPU percentage. On Linux it includes tasks ready to run and tasks stuck in uninterruptible sleep, often while waiting for storage. Compare the 1-, 5-, and 15-minute values with the number of logical CPUs from nproc. A one-minute load above the CPU count can indicate a burst; a sustained high value needs investigation.
nproc
uptime
vmstat 1 10
In vmstat, watch runnable tasks in r, blocked tasks in b, CPU idle time, I/O wait, and swap activity. High load with low CPU use and blocked tasks often points toward storage or another kernel wait rather than insufficient processors.
4. Check CPU pressure, not only CPU usage
Find which processes and threads are consuming CPU, then ask whether the work is expected. A backup, compression job, software build, malware scan, or runaway application can be legitimate work at the wrong time. If available, pidstat gives a clearer time series than a single top screen.
top -b -n 1 | head -30
pidstat -u 1 10
cat /proc/pressure/cpu
Distinguish user time, system time, I/O wait, and steal time. High system time can indicate intensive kernel activity; high steal time on a virtual machine can mean the hypervisor is not giving the guest enough CPU. Do not add virtual CPUs automatically: application locks, oversubscribed hosts, and single-threaded work may not improve with a larger CPU count.
5. Look for memory pressure and swapping
Low “free” memory alone is not a problem because Linux uses memory for cache. Focus on available memory, active swap movement, pressure stall information, and out-of-memory events. Continuous swap-in and swap-out while requests are slow is more meaningful than nonzero swap usage left from an earlier event.
free -h
vmstat 1 10
cat /proc/pressure/memory
journalctl -k --since "24 hours ago" | grep -Ei 'out of memory|oom-killer|killed process'
Identify growth by process and compare it with the application's normal range. Restarting a leaking service may restore performance, but preserve logs and memory trends first and treat the restart as containment, not diagnosis. Also check container and service limits: the host may have spare memory while one cgroup is under pressure.
6. Separate storage capacity from storage latency
A filesystem can have free gigabytes and still be slow. Check both block capacity and inode use, then inspect device latency, utilization, queueing, and filesystem or device errors. If iostat is installed, use an interval so the first report since boot does not mislead you.
df -hT
df -ih
iostat -xz 1 10
cat /proc/pressure/io
journalctl -k --since "24 hours ago" | grep -Ei 'i/o error|timeout|reset|ext4|xfs|nvme|scsi'
Interpret storage statistics according to the device and workload; there is no universal latency threshold. Network volumes, cloud disks, RAID, and local NVMe behave differently. Correlate slow periods with backups, log rotation, snapshots, database maintenance, or another tenant's activity. Avoid destructive benchmarks on a production filesystem.
7. Check filesystem hot spots and deleted-open files
When one mount is close to full, find growth without crossing unrelated filesystems. Deleted files can also continue consuming space while a process keeps them open.
du -xhd1 /var 2>/dev/null | sort -h
lsof +L1
Large log directories, temporary exports, package caches, container layers, and database files are common hot spots. Do not delete unfamiliar files just to recover space. Confirm ownership, retention requirements, and whether the application supports online cleanup. For a deleted-open file, a controlled service restart may release space, but only after its operational impact is understood.
8. Test the network in layers
A server may appear slow when the delay is in DNS, routing, packet loss, TLS negotiation, a proxy, or a remote dependency. Test the actual service instead of relying only on ping. Compare a local request on the host, a request from the same network, and a request from the user's location.
ss -s
ss -lntp
ip -s link
curl -o /dev/null -sS -w 'connect=%{time_connect} ttfb=%{time_starttransfer} total=%{time_total}\n' https://example.com/health
Replace the example URL with the approved service endpoint. Review interface errors and drops, connection counts, retransmission evidence, and DNS timing. ICMP success proves only limited reachability; it does not prove that the application, database, or TLS path is healthy.
9. Inspect service queues and limits
If the host resources look normal, move closer to the application. Check service status, recent logs, worker pools, connection queues, open-file limits, process counts, and cgroup limits. A service can be slow because all workers are busy even while the host has idle CPU.
systemctl status your-service --no-pager
journalctl -u your-service --since "30 minutes ago" --no-pager
systemctl show your-service -p MemoryCurrent -p MemoryMax -p TasksCurrent -p TasksMax
Look for timeouts, retries, pool exhaustion, rate limiting, long garbage-collection pauses, and repeated dependency failures. Compare configured limits with observed concurrency. Increasing workers without checking database capacity and memory can move the bottleneck rather than remove it.
10. Follow the request into the database and dependencies
Application delay often comes from a database, API, object store, identity provider, or DNS resolver. Use request IDs or timestamps to connect the slow user action with upstream logs. For a database, review active sessions, lock waits, connection-pool saturation, slow-query evidence, and storage latency before changing indexes or configuration.
Measure dependency calls from the application host and from the application itself. A direct database test may be fast while the application's pool waits for a connection. Conversely, restarting the web process will not fix a blocked transaction or a remote API that is timing out.
11. Compare the incident with a baseline
A current value becomes useful when compared with the same host, workload, and time window. Keep weekly trends for CPU pressure, load, available memory, swap movement, disk use, inode use, storage latency, boot time, failed services, and application response time. Mark deployments, backups, traffic campaigns, and infrastructure changes on the timeline.
Baselines also reveal slow drift: storage latency that rises each week, a worker process whose memory never returns, a filesystem filling faster than expected, or a database query whose duration doubles over a month. This is where lightweight Linux server monitoring provides more value than a one-time command dump.
12. Change one thing, verify, and document
Form a specific hypothesis from the evidence, make the smallest reversible change, and repeat the same measurement. Examples include stopping an unintended batch job, rescheduling a backup, correcting a query, expanding a constrained pool, or repairing a failing storage path. Record the command, owner, time, expected result, actual result, and rollback route.
A reboot can be necessary for a kernel fault, failed device recovery, or planned maintenance, but capture evidence first and verify every critical service afterward. Confirm application response, database connectivity, mounts, scheduled jobs, backups, monitoring collection, and the original user workflow. “The server is reachable” is not enough to close a performance incident.
A compact triage order for small teams
When time is limited, use this sequence: define the symptom, save a snapshot, inspect load and CPU pressure, check memory and swap, check storage space and latency, test the real network service, inspect application queues, and follow the request into dependencies. Escalate immediately if logs show hardware errors, filesystem corruption, repeated out-of-memory kills, security concerns, or a business-critical outage beyond the team's recovery plan.
The goal is not to collect every metric. It is to preserve enough evidence to separate CPU contention, memory pressure, storage delay, network problems, service saturation, and dependency failures. A repeatable checklist plus a small set of historical trends turns “the Linux server is slow” into a testable problem and helps catch the same pattern earlier next time.
Want weekly infrastructure checks without dashboard fatigue?
DMCloud Architect turns Linux and MySQL health signals into practical weekly reports, helping developers and small businesses spot capacity and performance drift before it becomes an outage.
Get the free starter plan for weekly infrastructure health reports.