Title: high cpu load index.php wordpress(100%cpu)
Last modified: August 22, 2016

---

# high cpu load index.php wordpress(100%cpu)

 *  [ninopro](https://wordpress.org/support/users/ninopro/)
 * (@ninopro)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/)
 * I moved my site to a virtual private server(VPS) because my sharing web hosting
   account doesn’t support the growing number of visitors, but when i install it,
   CPU spikes to 100% and the site doesn’t load.
    please check these two screenshots
   [http://i.imgur.com/KUxdrgV.jpg](http://i.imgur.com/KUxdrgV.jpg) [http://i.imgur.com/0vG6sGt.jpg](http://i.imgur.com/0vG6sGt.jpg)
 * I tried everything; desactivating all plugins, deleting all plugins, checking
   database, installing a fresh copy of WordPress but still the same problem.
 * Plugins:
    All In One SEO Pack Attachment Pages Redirect Autoptimize Contact Form
   7 Disqus Comment System HTML Javascript Adder iThemes Security No Image Link 
   Official StatCounter Plugin WordPress Related Posts Responsive Lightbox WP-PageNavi
   WP-ReportPost Wp Pagenavi Style WP Smush.it WP Super Cache
 * i updated all plugins and wordpress
 * VPS centos 6.5 : 5GO RAM, 50GO Disk, CPU 2 vCore(2.0 GHz+)
 * Apache Version 2.4.10
    PHP Version 5.3.29 MySQL Version 5.5.40-cll
 * number of visitors between 300000 and 500000
 * online visitors now between 200 and 300
 * Please someone help, i have been struggling for months to find a solution.

Viewing 15 replies - 1 through 15 (of 15 total)

 *  [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631356)
 * Well, do you have a [PHP opcode cache](https://en.wikipedia.org/wiki/List_of_PHP_accelerator)
   component installed (APC, typically)?
 *  Thread Starter [ninopro](https://wordpress.org/support/users/ninopro/)
 * (@ninopro)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631437)
 * Thanks for being here Frank.
    I have installed eAccelerator, the site works but
   the load is very slow, cpu always 85% [http://i.imgur.com/50W5UIB.jpg](http://i.imgur.com/50W5UIB.jpg)
   still don’t understand the problem with index.php that causes high cpu usage.
 *  [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631438)
 * all wordpress requests go through index.php, so ..
 * next up; disable all plugins except for wp super cache and check (in wp-content/
   cache) if cache-files are being generated.
 * frank
 *  Thread Starter [ninopro](https://wordpress.org/support/users/ninopro/)
 * (@ninopro)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631488)
 * yes they are.
    i disabled all plugins except wp super cache at 9:40 PM and its
   still generating cache-files [http://i.imgur.com/yzrKYUM.jpg](http://i.imgur.com/yzrKYUM.jpg).
   cpu between 40% and 70% with only wp super cache enabled. [http://i.imgur.com/zfSMkAm.jpg](http://i.imgur.com/zfSMkAm.jpg)
 * do you think the number of visitors is the problem ?
    do i have to move to a 
   dedicated sever ? or it’s a bad vps configuration.
 *  [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631489)
 * well, from 100% over 85% to 40-70%, you’re definitively going in the right direction
   there, no? 🙂
 * the number of visitors is not negligible, a dedicated server (or cloud hosting)
   might be interesting, depending on answers to some of below questions;
    * are
   the visitors logged to wordpress, or anonymous? * how many posts&pages do you
   have? * are visitors bound to visit lots of different posts/pages, or are there
   some pages that stand out? * what is wp super cache’s cache timeout?
 * frank
 *  Thread Starter [ninopro](https://wordpress.org/support/users/ninopro/)
 * (@ninopro)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631490)
 * anonymous visitors
    2600 posts and 5 pages visitors stats [http://i.imgur.com/uS11uC9.jpg](http://i.imgur.com/uS11uC9.jpg)
   right now on site google analytics [http://i.imgur.com/M6cWWTz.jpg](http://i.imgur.com/M6cWWTz.jpg)
 * yes visitors are seeing different posts and pages
 * cash timeout : [http://i.imgur.com/OgsZxYy.jpg](http://i.imgur.com/OgsZxYy.jpg)
 *  [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631491)
 * with those numbers (pageviews/day and per minute) a dedicated server should indeed
   be on your wishlist. alternatively you could sign up with cloudflare or fastly,
   who’ll be able to absorb that traffic way better.
 * on you current set-up, I would advise to up the cache timeout significantly (
   mine is at 86400 seconds = 24h), which should lower the CPU-load some more.
 * hope this helps,
    frank
 *  Thread Starter [ninopro](https://wordpress.org/support/users/ninopro/)
 * (@ninopro)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631492)
 * Thank you so much for being here, god bless you.
 *  [Dignified Labs](https://wordpress.org/support/users/dignifiedbimpe/)
 * (@dignifiedbimpe)
 * [11 years ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631633)
 * [@ninopro](https://wordpress.org/support/users/ninopro/) I have a very similar
   setup and problem to yours.
 * Did you ever find a solution to your problem? If you did, do you mind sharing.
 * I’m also on a VPS server with 4GB ram. I’m already using Cloudflare but my problem
   still persists.
 *  [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631634)
 * Afternoon dignifiedbimpe;
    There’s no one solution for “high CPU-load”, go through
   the questions/ remarks posted earlier (opcode caching, page caching plugin, disabling
   other plugins, …) and see which of those applies to your specific context. Feel
   free to post your own answers/ findings here and I’ll be happy to provide you
   with some guidance.
 * Kind regards,
    frank
 *  Thread Starter [ninopro](https://wordpress.org/support/users/ninopro/)
 * (@ninopro)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631635)
 * [@dignifiedbimpe](https://wordpress.org/support/users/dignifiedbimpe/)
    First
   we thought that the high load was caused by a plugin but it appeared that our
   website traffic was growing so fast so we moved to a dedicated server. Everything
   was ok but after a few days the same thing happened so we hosted the website 
   on 3 servers; 1 database server and 2 webservers.
 * 1 vps server for the database.
    2 dedicated servers for the files, plugins and
   images…
 * Now we have more than 200 000 daily visitors and everything is working fine.
 * I didn’t do that by myself, my webhosting did it for me and it’s not very complicated.
 *  [Dignified Labs](https://wordpress.org/support/users/dignifiedbimpe/)
 * (@dignifiedbimpe)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631636)
 * Thank you both for your feedback. I have just tried all the procedures suggested
   by Frank Gossens.
 * I have installed APC on my VPS server, but my high CPU load problem still persists.
 * Annoyingly it also appears my server gets high CPU load whenever i publish a 
   new post on my wordpress site.
 * I have also tried deactivating and reactivating all plugins. The screenshots 
   below are my findings so far.
 * After de-activating all plugins, this was the reading on my server…
    [http://idey.me/wp-content/uploads/2015/05/Post-plugin-disable.png](http://idey.me/wp-content/uploads/2015/05/Post-plugin-disable.png)
 * I went a step further and also switched to the default wordpress theme…
    [http://idey.me/wp-content/uploads/2015/05/Post-plugin-disable-twenty-fifteen-theme.png](http://idey.me/wp-content/uploads/2015/05/Post-plugin-disable-twenty-fifteen-theme.png)
 * I then re-activated all my plugins…
    [http://idey.me/wp-content/uploads/2015/05/Post-plugin-renable-twenty-fifteen-theme.png](http://idey.me/wp-content/uploads/2015/05/Post-plugin-renable-twenty-fifteen-theme.png)
 * As you can see from the screenshots that there is also a random CPU drain by 
   the root user and I don’t know why. I am mostly in my WordPress frontend, hardly
   ever go into root.
 * @ninpro, i have also considered your suggestion but it sounds quite expensive
   to have multiple servers. I currently find my VPS account with bluehost expensive
   as it is already.
 * Plus, i don’t even have up to 2000 users coming on the site daily.
 * Bluehost claims they can’t help with VPS installations as they are not configured
   by them. I constantly get hit with the “hire a developer to optimise your site”
   response.
 * Thanks you advance for your responses guys.
 *  [Dignified Labs](https://wordpress.org/support/users/dignifiedbimpe/)
 * (@dignifiedbimpe)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631637)
 * My website appears to be very fine on the front-end, but on the back-end all 
   is not well.
 * You can test the frontend yourself on pingdom or gtmetrix.
 * [http://idey.me](http://idey.me)
 *  [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631638)
 * hmm … the whostmgr processes apparently are monitoring processes, which you can’t
   do a thing about. but CPU usage does not seem that high on those screenshots (
   when ignoring whostmgr)? still, performance of a VPS is hard to troubleshoot 
   as the hoster did not configure the guest-OS, but the customer did not configure
   the host-OS. going to a dedicated server could indeed be expensive, but you could
   upgrade your VPS-plan, I guess?
 * specifically for wordpress; make sure you have APC active and install a page 
   caching plugin (hyper cache or wp super cache). posting new posts (or comments)
   will however always cause a brief higher CPU-load, as this involves PHP (WP) 
   and your database.
 * frank
 *  [Dignified Labs](https://wordpress.org/support/users/dignifiedbimpe/)
 * (@dignifiedbimpe)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631639)
 * Just to update you all, I eventually made up my mind and moved my site to a new
   host.
 * My site is now performing much better and faster on a the VPS server (4gb RAM,
   2CPU & 200gb SSD Disk drive + Memcache + Cloudflare Pro).
 * Occasionally I still the “index.php” process using as much as 49% CPU, but this
   does not seem to affect the server half as much as it did on the previous server.
 * Thanks for all your help.

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘high cpu load index.php wordpress(100%cpu)’ is closed to new replies.

## Tags

 * [cpu](https://wordpress.org/support/topic-tag/cpu/)
 * [high load](https://wordpress.org/support/topic-tag/high-load/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 15 replies
 * 3 participants
 * Last reply from: [Dignified Labs](https://wordpress.org/support/users/dignifiedbimpe/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/high-cpu-load-indexphp-wordpress100cpu/#post-5631639)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
