How to Fix High CPU Usage from WordPress on a 1GB VPS

High CPU usage WordPress VPS owners run into usually shows up the same way: pages load slowly, the admin dashboard crawls, and htop shows a core pinned at 100% while visitors wait. On a 1GB VPS there is no spare headroom to absorb the problem, so one runaway process can take the whole site down. The fix is rarely a bigger server. Most of the time the cause is one of a handful of usual suspects, and you can find it and fix it in under an hour.

The Usual Causes of High CPU Usage WordPress VPS Owners Face

WordPress high CPU usage almost always comes from the same short list. PHP-FPM spawns more workers than the RAM allows, and the server spends its time swapping instead of serving pages. wp-cron fires on every single visit and runs scheduled tasks in the middle of real traffic. A heavy plugin runs an expensive query on every page load. Bots hammer wp-login.php, or a scraper crawls the site faster than a human ever could. And with no page cache, every request forces PHP and MySQL to build the page from scratch. Check these in order and you will find the culprit; guessing at random is how people waste a whole afternoon.

Find the Process Eating Your CPU

Before changing anything, look at what is actually running. Log in over SSH and run htop, or if it is not installed, top. Sort by CPU and watch for a minute. On a WordPress server the usual names are php-fpm, mysqld, and occasionally nginx. If php-fpm workers sit at the top, the problem is PHP work: too many requests, a heavy plugin, or too many workers. If mysqld sits at the top, the database is doing the heavy lifting, usually from slow queries or missing indexes. If the load average is far above the number of CPU cores, the server is queuing work it cannot finish. For a step-by-step walkthrough of reading these numbers, see how to find which process is eating your VPS RAM, which covers the same tools for memory and CPU. Note the process name and the time of day the spike happens before you touch any config; a spike that lines up with a backup job or a cron task points at a different fix than a spike that follows traffic.

Tune PHP-FPM for 1GB of RAM

The fastest way to cut php-fpm cpu usage is to stop spawning more workers than the RAM allows. Each PHP-FPM child uses roughly 30-50 MB, so ten children can eat half your memory before MySQL gets any. Open your PHP-FPM pool config, usually at /etc/php/8.3/fpm/pool.d/www.conf, and set pm = dynamic with pm.max_children = 5, pm.start_servers = 2, pm.min_spare_servers = 1, pm.max_spare_servers = 3, and pm.max_requests = 500. The last setting recycles workers regularly, which keeps a slow memory leak in a plugin from growing all day. Make sure OPcache is enabled, since it stops PHP from recompiling every script on every request, and restart PHP-FPM after the change. If you want the full reasoning behind each of these values, read how to tune PHP-FPM pm settings for a 2GB RAM VPS and scale the numbers down for your 1GB box.

Stop wp-cron From Firing on Every Visit

By default WordPress runs its fake cron on every page load. Each visit triggers wp-cron.php, which checks scheduled tasks and sometimes runs them right in the middle of serving a visitor. On a busy hour that wp-cron cpu load adds up fast, and on a quiet site a single bot visit can trigger a heavy scheduled task at the worst moment. Turn it off by adding define('DISABLE_WP_CRON', true); to wp-config.php, then add a real system cron job that calls wp-cron.php every 15 minutes, for example with curl or wget from the server itself. Scheduled posts, updates, and plugin tasks still run, just on a timer you control instead of on your visitors’ backs. The trade-offs and the exact setup are covered in WordPress cron vs real cron and why wp-cron.php slows your VPS.

Tame MySQL Before It Eats the CPU

MySQL cpu usage on a small VPS usually comes from queries that scan whole tables instead of using an index. Turn on the slow query log for a day, then look at which queries appear most often. On a 1GB server, keep innodb_buffer_pool_size modest, around 256 MB, so MySQL leaves room for PHP and the operating system; a bigger buffer pool on a tiny box just pushes the server into swap. Clean out the junk too: post revisions, expired transients, and spam comments pile up in the database and make every query slower. Plugins that log every visit or store statistics in the options table are a common source of bloat, so check the largest tables with a quick query before you blame the hardware. The full tuning walkthrough is in how to tune MariaDB 11.x for a low-memory VPS with 1-2GB RAM, and the numbers there transfer directly to MySQL with the same buffer pool logic.

Add Page Caching So PHP Runs Less Often

The cheapest CPU you can buy is the CPU you never use. A page cache serves repeat visitors from a stored HTML file instead of running PHP and MySQL for every request, and on a 1GB VPS the difference is dramatic: a cached page costs almost nothing, while an uncached one can take a whole CPU core for a noticeable fraction of a second. Nginx FastCGI cache does this at the server level with no plugin, and it skips the cache for logged-in users and carts so the admin area and checkout still work. Set it up once, test that a logged-out visit returns a cache hit header, and watch the CPU graph drop. The setup is covered in how to configure Nginx FastCGI cache for WordPress with no plugin.

Block the Bots and Brute-Force Logins

Not all of your traffic is human. Brute-force bots try thousands of password combinations against wp-login.php, and each attempt runs a full WordPress boot plus a password hash check, which is deliberately expensive CPU work. Scrapers that ignore robots.txt can request hundreds of pages a minute. Limit login attempts, disable XML-RPC if you do not use the mobile app or Jetpack, and rate-limit wp-login.php and xmlrpc.php in Nginx so one IP cannot flood them. A fail2ban jail that bans an IP after a few failed logins turns a constant drain into an occasional blip. Check the access log after a day: if one IP or user agent dominates the request count, block it and measure the CPU again before changing anything else.

When Upgrading Is the Honest Answer

Sometimes the server really is too small. If you fixed PHP-FPM, tamed wp-cron, tuned the database, added caching, and blocked the bots, yet the CPU still sits near 100% during normal traffic, your site has outgrown 1GB of RAM and one core. That is a good problem to have: it means real visitors, not a misconfiguration. Before you pay for a bigger plan, check the numbers one more time with caching on, because an uncached site can look twice as busy as it really is. If the load is still genuine, move to 2GB of RAM and a second core, then repeat the tuning above, since a bigger server with the same bad settings just burns money faster.

Ditulis oleh

Firdaus Safari Putra

Founder, PT FirKaizen Digital Solutions

Firdaus Safari Putra adalah founder PT FirKaizen Digital Solutions. Ia membangun dan mengoperasikan infrastruktur server di balik panduan ini, dan menulis berdasarkan apa yang benar-benar ia jalankan, uji, dan ukur — bukan teori.