Skip to content
VDS · Troubleshooting

CPU is at 100%

How to find the process eating up CPU cores, distinguish real load from disk wait, and decide whether to fix the code or move to a higher tier.

Updated August 23, 2026

A plateau on the CPU graph in the “Overview” tab isn’t an emergency by itself: building a project or creating an archive will honestly use all cores and then release them. It’s alarming when the plateau lasts for hours and the machine stops responding. Let’s figure out what’s to blame.

Step 1. See what’s consuming resources

The “Screen” (VNC) tab is convenient for working with full-screen programs:

btop
htop

The serial console doesn’t pass the window size; it’s always 80×24 there, so the interface will be cut off. For a text console, use the standard commands:

top -b -n1 | head -20
ps aux --sort=-%cpu | head -10

Remember the arithmetic: %CPU is calculated per core. 400% on VDS-3 means all four cores, while 100% on VDS-4 is just one out of six.

Step 2. Tell CPU from disk

Average load (load average) also rises from I/O wait, not just from computation:

uptime
vmstat 1 5

In the vmstat output, look at the columns us (user code), sy (kernel), wa (disk wait), and st (stolen time). A large wa means the CPU is idle waiting for the disk — the bottleneck is write speed, not computation. The disk plateau on our tiers is set by a rule: write 60 MB/s per core, no lower than 60 and no higher than 400 MB/s, read is twice as high, and a burst three times above the plateau lasts 30 seconds. If a task writes continuously, the burst will end and you’ll hit the plateau.

Step 3. Investigate a specific process

pidstat -p <pid> 1 5
cat /proc/<pid>/status
journalctl -u <service> -n 100 --no-pager

Common findings:

  • a web application is spinning in an infinite loop after a failed request;
  • the database is running a query without an index — check its own slow query log;
  • a cron job starts more often than it can finish, and instances accumulate: ps aux | grep <name> will show a dozen copies;
  • a miner that got onto the machine through a weak root password. The sign is a process with a meaningless name running under a non-standard user and high outgoing bandwidth. In this case, it’s easier to reinstall the machine from the “Access” tab than to clean it.

Step 4. Limit, don’t kill

If the process is needed but shouldn’t interfere with the rest:

renice -n 15 -p <pid>
systemctl set-property myapp.service CPUQuota=200%

CPUQuota=200% is two full cores. A systemd limit survives a service restart; renice doesn’t.

Before killing a process with kill -9, try a regular systemctl stop. Force-killing a database costs you corrupted files and a long recovery on the next start.

When it’s not the code

If the load is legitimate and constant, the Ryzen 9 7950X CPU is doing its job — there simply aren’t enough cores for the task. The tier can only be changed upward, with an additional payment for the remaining days of the paid period: see the article Upgrading your plan and paying the difference. Downgrading back is not available, so first make sure from the week and month graphs that the plateau isn’t a one-time occurrence.