Skip to content

VPS Performance: Fix High CPU Usage and Lag

Is your VPS slow, lagging or stuck at 100% CPU? Use monitoring, top and disk I/O to find the cause and fix it.

29 November 20268 min read0 Views0 helpful

Introduction

Is your VPS sluggish, are websites loading slowly, are players experiencing lag on your game server, or is the CPU constantly at its limit? In most cases, one of a few causes is behind it: a process using up the CPU, a full or heavily used disk, too little free memory, or a network issue. This guide walks you through finding out what is slowing down your VPS and how to fix it.

Quick check: What’s causing the issue?

What you observeLikely causeGo to
CPU usage in Monitoring stays at 90–100%A process or your application needs more resources than your plan provides“CPU constantly at its limit”
CPU isn’t maxed out, but everything feels slow; wa is high in topThe disk is the bottleneck“Disk is slow or full”
RAM usage is close to 100%, and processes are being terminatedNot enough free memory“RAM is full”
The server responds quickly, but external connections are laggyNetwork, traffic throttling, or the player’s connection“Network lag”
You’re missing cores or RAM after an upgradeThe new values take effect only after restarting from the panel“Performance is missing after an upgrade”

Step 1: Check Monitoring in the dashboard

Open the Monitoring tab in your VPS web interface. You’ll see four charts:

  • CPU usage: Average across all vCPUs, with the current value, average (Avg.), and maximum (Max).
  • RAM usage: How much of your allocated RAM is in use.
  • Network I/O: Incoming and outgoing data traffic per second.
  • Disk I/O: Disk reads and writes per second.

Use Period to switch between Hour, Day, Week, and Month. Start by looking at Day and Week: A brief spike is normal (for example, during startup or an update). A graph that stays at its limit for hours or spikes at the same time every day is a concern. CPU and RAM values turn yellow at 80% and red at 90%.

Info

System connection: RAM values without cache and disk usage are provided by your operating system through the system connection. On Linux, you need the qemu-guest-agent package for this. Without a system connection, ZapX shows the hypervisor’s value, which includes the operating system’s cache and therefore appears higher. Learn more in Ballooning and high RAM usage.

Monitoring shows you that a resource is at its limit. To find out which process is responsible, you need to check the server itself (Step 2).

Step 2: Check what’s causing the load on the server

Linux

Connect via SSH or the console and run these commands:

CommandWhat it shows
top or htopProcesses sorted by CPU usage, with the us, sy, wa, and st values in the header
uptimeLoad average over the last 1, 5, and 15 minutes
nprocNumber of your vCPUs
free -hMemory in use and available, plus swap
df -hDisk usage for each partition
iotop -oProcesses currently reading from or writing to the disk (the iotop package)
journalctl -k | grep -i -E "oom|killed process"Processes terminated by the system because of insufficient RAM

Here’s how to read the top header:

  • us / sy: CPU time used by your programs and the system. If the two values remain close to 100% combined, the CPU is the bottleneck.
  • wa (I/O wait): The CPU is waiting for the disk. High values mean the disk is slowing things down, not the CPU.
  • st (Steal): Time your VPS spends waiting for a free host core. Learn more in “Steal time.”
  • Load average: If the value stays significantly above the number shown by nproc, more processes are waiting for CPU time than there are free cores.

Windows

Sign in via Remote Desktop or the console, then open Task Manager (Ctrl + Shift + Esc). On the Processes tab, sort by CPU, Memory, or Disk. For more details, open Resource Monitor (resmon), which can show, for example, which files are currently being read or written.

CPU constantly at its limit

Common causes:

  • Your application needs more resources: Game servers with many players or mods, databases running large queries, build processes, or multiple services running at once.
  • Scheduled tasks: Backups, updates, cron jobs, or virus scans that run at the same time every day. You can spot them in Monitoring by spikes at the same time. Schedule them for periods when there’s less activity.
  • Stuck processes: A process stuck in an infinite loop can keep one core busy. Restart the service and check its logs.
  • Unauthorized processes: Unknown processes with high CPU usage (often with random names) may indicate that your server has been compromised, often by a crypto miner. Stop the process, change all passwords, and secure the server. See Linux security tips. If the system has been heavily modified, a reinstallation is the safer option.
Warning

Mining and sustained high load: Crypto mining is not allowed on VPSs, nor is sustained high load that affects other customers.

If your application is constantly at its limit and nothing unusual is running, your VPS is too small for the workload. An upgrade can help (see below).

Steal time: shared vCores

You share your VPS’s vCores with other VPSs on the same host, and all are weighted equally. The st value in top shows how often your VPS had to wait briefly for a free core. Occasional brief spikes are normal. If st remains well into the double digits for a long time while your own load is normal, contact Support and include a screenshot of top with the date and time. We’ll check the host.

If you need cores that are exclusively yours, a Dedicated Server is the right choice.

Disk is slow or full

Disk is full: When the disk fills up, programs slow down or stop working, and databases can no longer write data. In Overview, the Disk tile turns yellow at 80% and red at 90%. Common space hogs on Linux include:

  • Log files in /var/log (journalctl --vacuum-size=200M cleans up the system journal)
  • Old Docker images and containers (docker system prune)
  • Backups and downloads left on the VPS itself

Run du -sh /* 2>/dev/null | sort -h to find the largest directories. If you keep running out of space, upgrade to add more storage.

Disk is slow: If Disk I/O shows a lot of activity and top reports a high wa value, the disk is slowing things down. Use iotop -o to find the process writing so much data. Common causes include databases, debug-level logging, or a backup that’s currently running. For databases with many small transactions, the Database-optimized disk cache mode may be faster. See Disk cache.

RAM is full

When memory is full, the system uses swap or terminates processes. Both make the server noticeably slower. Use free -h to check how much RAM is actually available (the available column), and top (press M) to see which process is using the most. Learn why the RAM value in the dashboard can sometimes look higher than in the operating system, and how ballooning is involved, in Ballooning and high RAM usage.

Network lag

If the server responds quickly through the console but external connections are laggy, the network is usually the cause:

  • Traffic allowance used up: You can check your usage in the Traffic Quota tab. If it says Throttled, your bandwidth is limited until the reset. A traffic package removes the throttling sooner. See Traffic allowance and throttling.
  • High ping or packet loss: Find out whether the issue is on the route between you and the server with an MTR test. See Identify network issues with WinMTR/MTR.
  • DDoS attack: An unusually high amount of incoming traffic in the Network I/O chart may indicate an attack. Check its status in the DDoS protection tab.

Performance is missing after an upgrade

  • New CPU and RAM values take effect only after restarting your VPS from the panel. Restarting only from within the operating system isn’t enough. Until you restart, the dashboard displays a notice with the Restart now button.
  • Additional storage is automatically added the next time you restart from the panel, and the partition and file system are expanded. On Windows, you can also follow Expand a disk on Windows Server.
  • If CPU features such as AVX2 are missing (for example, after an older VPS is migrated to ZapX), the dashboard also displays a restart notice. After restarting from the panel, all of the host’s CPU features will be available.

Notifications for high usage

You don’t have to keep checking Monitoring: ZapX notifies you when your VPS stays at an average of 90% or higher for 10 minutes. The available events are High CPU usage, High RAM usage, and Storage almost full. You can receive notifications through Discord, Slack, Telegram, or your own webhook. Set this up under Settings › Notifications. See Set up notifications.

Upgrade: If your VPS is consistently too small

If your VPS is constantly at its limit without any apparent issue, you can add CPU, RAM, or storage in the Manage plan tab. Details on how this works and how you’re billed are available in Upgrades, downgrades, renewals, and cancellations.

If your load varies a lot, Scale with Me can handle things for you: If typical usage is around 80% or higher for an hour, the next plan is automatically booked. If CPU and RAM stay below around 60% for 72 hours, your plan is downgraded again. You’ll find this option in the Manage plan tab as well.

Contact Support

With the ZapX Pass, the ZapX AI Agent can check the status and analyze logs in your dashboard. See Use the ZapX AI Agent. If you still need help, contact Support and include:

  • When the issue started and whether it occurs at specific times
  • A screenshot from the Monitoring tab (time period Day or Week)
  • The output of top (Linux) or a screenshot of Task Manager (Windows) while the lag is occurring

Summary

You now know how to use Monitoring to identify which resource is at its limit, find the process responsible on the server, and troubleshoot CPU, disk, RAM, and network issues. If your VPS won’t start at all or keeps crashing, see VPS won’t start or keeps crashing.

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

Usually, a resource is at its limit: the CPU is being used by a process or your application, the disk is busy with write operations or full, or there isn’t enough memory. The Monitoring tab shows which resource is affected. Check the server itself (for example, with top or Task Manager) to find the process responsible.
On Linux, top or htop lists processes by CPU usage. On Windows, open Task Manager and sort by CPU on the Processes tab. Unknown processes with consistently high usage may indicate that your server has been compromised.
Steal is the time your VPS spends waiting for a free host core because VPSs share vCores. Brief spikes are normal. If the value stays well into the double digits for a long time while your own load is normal, contact Support with a screenshot of top and the time.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.