Apply for Free VPS

Find what is using the CPU

Updated 27 Nov 2026 performance cpu

Identify busy processes, tell CPU work from disk waiting and calm them down.

Look

uptime
top                      # press P to sort by CPU, 1 to show each core
ps -eo pid,user,%cpu,%mem,etime,comm --sort=-%cpu | head

A load average near your vCPU count is busy; well above it for long periods means work is queuing.

CPU or disk?

In top, wa is time waiting for the disk. High wa points to disk I/O, not the processor.

vmstat 5 5

Over time

sudo apt install -y sysstat
pidstat 5 12

Reduce it

  • Fix runaway loops and failing services that restart constantly (systemctl --failed).
  • Lower worker counts to match your vCPUs.
  • Run batch jobs with lower priority:
nice -n 15 ionice -c2 -n7 ./batch-job.sh
  • Cap a service with CPUQuota=50% in its unit.

Unknown process?

A high-CPU program you did not install, especially in /tmp, may be a miner. Treat it as a compromise.

Was this helpful?

Report outdated or incorrect information