hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting : WordPress spiking at 100% CPU usage
Reply

Web Hosting Discussions on all aspects of web hosting including past experiences (both negative and positive), choosing a host, questions and answers, and other related subjects. If your service is unavailable, please click here.
Forum Jump

WordPress spiking at 100% CPU usage

Reply Post New Thread In Web Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-18-2012, 12:30 PM
celticpride678 celticpride678 is offline
Newbie
 
Join Date: Jun 2011
Posts: 27

WordPress spiking at 100% CPU usage


Hello,

I'm currently set up under StableHost's premium shared hosting account. I've got a WordPress site that sees about 1000 unique visitors everyday.

Two weeks ago, StableHost made me aware that my site was, at random, using 100% of the CPU allowed. It wasn't a constant usage of 100%, just at times.

Since then, I've been working with them to figure out what may be causing the issue. We've tried nearly everything: WP Super Cache, optimizing databases, deactivating all plugins, using stock WordPress theme temporarily, checking IMAP processes, and checking wp-cron.php. None of these fixed the issue completely.

If anyone has any other ideas, I'm all ears! Thanks!

Reply With Quote


Sponsored Links
  #2  
Old 02-18-2012, 12:38 PM
Red_wolf6 Red_wolf6 is offline
Web Hosting Master
 
Join Date: Sep 2007
Location: Germany
Posts: 572
Yes, I do, switch from them. They're good but you can find better.

De-active plugin and waste your time for something that not gonna work.

Get a hosting that has not Cloudlinux

This is an advice from someone who faced the same problem before and tried a lot of solutions.

__________________
sorry, This user doesn't have a signature


Reply With Quote
  #3  
Old 02-18-2012, 01:18 PM
MikeDVB MikeDVB is online now
Web Host Extraordinaire!!!
 
Join Date: Dec 2007
Location: Indianapolis, Indiana USA
Posts: 14,315
To be honest, it's absolutely normal to hit 100% from time to time. Just the same as when driving a car - it's not uncommon for you to push the pedal all the way to the floor from time to time, that doesn't mean something is wrong with the car... Now if you have to push it to the floor *all the time* just for the car to move (i.e. you have to sustain 100% for extended periods of time) then something is amiss.

What exactly did they say when they contacted you?

__________________
Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
For high-end shared accounts ideal for business, check out our Semi-Dedicated offerings!
http://www.mddhosting.com/ - Providing Quality Services since 2007

Reply With Quote
Sponsored Links
  #4  
Old 02-18-2012, 01:46 PM
celticpride678 celticpride678 is offline
Newbie
 
Join Date: Jun 2011
Posts: 27
I initially contacted them with an issue related to elevated CPU usage - regarding "connection interrupted" errors. That issue was resolved, and from there it came out that CPU usage was high.

I've been in a ticket with one of their system admins, but it seems he's also pretty stumped too.

Reply With Quote
  #5  
Old 02-18-2012, 01:47 PM
MikeDVB MikeDVB is online now
Web Host Extraordinaire!!!
 
Join Date: Dec 2007
Location: Indianapolis, Indiana USA
Posts: 14,315
Quote:
Originally Posted by celticpride678 View Post
I initially contacted them with an issue related to elevated CPU usage - regarding "connection interrupted" errors. That issue was resolved, and from there it came out that CPU usage was high.

I've been in a ticket with one of their system admins, but it seems he's also pretty stumped too.
Well, like I said - it's pretty normal. If you process a PHP script (esp. something like WordPress) and you don't hit 100% then you're probably not getting the most out of your CPU allocation and it's taking longer to process each page than it should.

__________________
Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
For high-end shared accounts ideal for business, check out our Semi-Dedicated offerings!
http://www.mddhosting.com/ - Providing Quality Services since 2007

Reply With Quote
  #6  
Old 02-18-2012, 01:49 PM
celticpride678 celticpride678 is offline
Newbie
 
Join Date: Jun 2011
Posts: 27
Quote:
Originally Posted by MikeDVB View Post
Well, like I said - it's pretty normal. If you process a PHP script (esp. something like WordPress) and you don't hit 100% then you're probably not getting the most out of your CPU allocation and it's taking longer to process each page than it should.
Alright. Thanks for the information.

Reply With Quote
  #7  
Old 02-18-2012, 05:16 PM
48-14 48-14 is offline
Web Hosting Master
 
Join Date: Apr 2011
Location: Toronto, ON
Posts: 2,806
1000 visitors a day is a good number, but not high enough to be causing large spikes.

A few things;

- how many plugins are you using
- are any of them importing feeds
- do all your visitors visit the site at a specific time

There are many things that can be done to track done the issue. How long has this been an issue, any new plugins, etc?

__________________
██ 48-14Servers & VPS for 2013, Coming Soon!
██ Specialized in WordPress Hosting & Security Since 2006
██LiteSpeed • Reliable • Secure • 99% Uptime Guarantee • Softaculous • Daily Backups
██ Email: sales [@] 48-14 .com • Twitter: @4814

Reply With Quote
  #8  
Old 02-18-2012, 05:20 PM
celticpride678 celticpride678 is offline
Newbie
 
Join Date: Jun 2011
Posts: 27
Quote:
Originally Posted by 48-14 View Post
1000 visitors a day is a good number, but not high enough to be causing large spikes.

A few things;

- how many plugins are you using
- are any of them importing feeds
- do all your visitors visit the site at a specific time

There are many things that can be done to track done the issue. How long has this been an issue, any new plugins, etc?
Plugin list:

1. Askimet
2. Contact Form 7
3. DB Cache Reloaded Fix
4. Google XML Sitemaps
5. Janrain Engage
6. Live Blogging
7. Livefyre Realtime Comments
8. Mingle Forum
9. Outbound Links
10. Quick Cache
11. Really Simple CAPTCHA
12. Theme Switcher Reloaded
13. Top 10
14. User Control
15. WordPress Mobile Edition
16. WP-Polls
17. Yet Another Related Posts Plugin

This has been an issue for quite some time (months), but nothing has changed in that time. It just never came to my attention.

Visitors don't come at a specific time - throughout the day.

Reply With Quote
  #9  
Old 02-18-2012, 05:21 PM
MikeDVB MikeDVB is online now
Web Host Extraordinaire!!!
 
Join Date: Dec 2007
Location: Indianapolis, Indiana USA
Posts: 14,315
"Yet Another Related Posts Plugin" tends to be very intensive, but more so on MySQL (which generally isn't included in your CPU information).

__________________
Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
For high-end shared accounts ideal for business, check out our Semi-Dedicated offerings!
http://www.mddhosting.com/ - Providing Quality Services since 2007

Reply With Quote
  #10  
Old 02-18-2012, 05:23 PM
celticpride678 celticpride678 is offline
Newbie
 
Join Date: Jun 2011
Posts: 27
Quote:
Originally Posted by MikeDVB View Post
"Yet Another Related Posts Plugin" tends to be very intensive, but more so on MySQL (which generally isn't included in your CPU information).
I have heard about that before, but it doesn't explain the spike because I've tried disabling all plugins before.

Reply With Quote
  #11  
Old 02-18-2012, 05:45 PM
48-14 48-14 is offline
Web Hosting Master
 
Join Date: Apr 2011
Location: Toronto, ON
Posts: 2,806
Your list seems normal. I would switch your #10 for W3 but it does need to be configured properly.

Also VERY important, look into security related plugins and auto backup type plugins. I know you already have a list of plugins, but one good attack and you will have bigger problems than just plugins or cpu load.

If everything has been smooth ask the host if anything has changed on their end.

Ask the host to do a virus/malware scan on your account. If you know WP enough, search through your contents folder and see if anything is out of place. Check your server cron. Check your stats if the spikes seem to happen at a specific time.

Also what I have seen sometimes and actually works is asking the host to move you to another server. Something could be slightly wrong with the current one.

__________________
██ 48-14Servers & VPS for 2013, Coming Soon!
██ Specialized in WordPress Hosting & Security Since 2006
██LiteSpeed • Reliable • Secure • 99% Uptime Guarantee • Softaculous • Daily Backups
██ Email: sales [@] 48-14 .com • Twitter: @4814

Reply With Quote
  #12  
Old 02-18-2012, 05:49 PM
celticpride678 celticpride678 is offline
Newbie
 
Join Date: Jun 2011
Posts: 27
Quote:
Originally Posted by 48-14 View Post
Your list seems normal. I would switch your #10 for W3 but it does need to be configured properly.

Also VERY important, look into security related plugins and auto backup type plugins. I know you already have a list of plugins, but one good attack and you will have bigger problems than just plugins or cpu load.

If everything has been smooth ask the host if anything has changed on their end.

Ask the host to do a virus/malware scan on your account. If you know WP enough, search through your contents folder and see if anything is out of place. Check your server cron. Check your stats if the spikes seem to happen at a specific time.

Also what I have seen sometimes and actually works is asking the host to move you to another server. Something could be slightly wrong with the current one.
Last I heard, W3 Total Cache doesn't support Litespeed servers as well. I can't use WP Super Cache either because there's an issue with cookies and our theme switcher that we provide readers.

A virus scan had been done and came back clean. Everything seems fine file structure wise as well. The only cron issue we saw was with wp-cron.php, but that has been resolved already and CPU is still high. Spikes don't seem to happen at a specific time, but there are always 10 entry processes when the CPU does hit 100%.

I can ask my host if a server switch may help, but I'm not sure if it will truly resolve the issue.

Reply With Quote
  #13  
Old 02-18-2012, 05:59 PM
linux-tech linux-tech is offline
<?require_once("life")?>
 
Join Date: Sep 2002
Location: inside your network
Posts: 9,548
The reality is this:
Wordpress is great as a CMS. Unfortunately, when you're talking 1000s of visitors (daily or not), it's not exactly the most stable thing in the world. In fact, those 1000 visitors a day probably don't account for SE visitors which can take up quite a bit.

Wordpress is not even remotely shared server friendly, when you get into larger databases, larger sites, more visitors. Unfortunately, that's the downside to using a CMS that pretty much does everything for you

__________________
Linux Tech Networks Reliable, Affordable Linux administration and monitoring since 2002

Reply With Quote
  #14  
Old 02-18-2012, 06:01 PM
48-14 48-14 is offline
Web Hosting Master
 
Join Date: Apr 2011
Location: Toronto, ON
Posts: 2,806
Quote:
Originally Posted by celticpride678 View Post
Last I heard, W3 Total Cache doesn't support Litespeed servers as well. I can't use WP Super Cache either because there's an issue with cookies and our theme switcher that we provide readers.

A virus scan had been done and came back clean. Everything seems fine file structure wise as well. The only cron issue we saw was with wp-cron.php, but that has been resolved already and CPU is still high. Spikes don't seem to happen at a specific time, but there are always 10 entry processes when the CPU does hit 100%.

I can ask my host if a server switch may help, but I'm not sure if it will truly resolve the issue.

Ok you seem sot be on top of most possible clues to the issue.

The server switch is to see if;

1. that specific server has issue or an upgrade that's not doing well with your site

2. a new high resource load customer is now on that server and causing the load

3. a new customer is abusing the server


I know usually the best thing to do is fix the site itself but a host is not going to mention what's happening on their end unless you really really bother them, then they will admit that something is wrong on their end.

So try to troubleshoot as best as you can, then ask and in some cases demand to move to a different server. They would rather keep you as a customer and do the move than to argue with you and tell you to leave. I've seen this trick work many many times.

__________________
██ 48-14Servers & VPS for 2013, Coming Soon!
██ Specialized in WordPress Hosting & Security Since 2006
██LiteSpeed • Reliable • Secure • 99% Uptime Guarantee • Softaculous • Daily Backups
██ Email: sales [@] 48-14 .com • Twitter: @4814

Reply With Quote
  #15  
Old 02-18-2012, 06:06 PM
48-14 48-14 is offline
Web Hosting Master
 
Join Date: Apr 2011
Location: Toronto, ON
Posts: 2,806
Quote:
Originally Posted by linux-tech View Post
The reality is this:
Wordpress is great as a CMS. Unfortunately, when you're talking 1000s of visitors (daily or not), it's not exactly the most stable thing in the world. In fact, those 1000 visitors a day probably don't account for SE visitors which can take up quite a bit.

Wordpress is not even remotely shared server friendly, when you get into larger databases, larger sites, more visitors. Unfortunately, that's the downside to using a CMS that pretty much does everything for you

Agree and disagree. It is great and it can do more than what most people know of it, but if the server and site are configured properly like a well oiled machine, you can have up 5000 visitors a day without spikes.

__________________
██ 48-14Servers & VPS for 2013, Coming Soon!
██ Specialized in WordPress Hosting & Security Since 2006
██LiteSpeed • Reliable • Secure • 99% Uptime Guarantee • Softaculous • Daily Backups
██ Email: sales [@] 48-14 .com • Twitter: @4814

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I reduce my crazy wordpress CPU usage? crazlunatic Web Hosting 31 04-27-2013 08:25 AM
CPU Usage for wordpress on Shared Hosting tharun Web Hosting 16 03-15-2011 01:28 PM
Wordpress Plugin causing high CPU usage waqyum Web Hosting 17 02-05-2010 10:31 AM
Server CPU Spiking MrSaints Hosting Security and Technology 17 01-12-2010 01:45 AM
Wordpress CPU usage.. thezombiehunter Hosting Security and Technology 7 11-05-2009 09:08 AM

Related posts from TheWhir.com
Title Type Date Posted
Pagely Launches Partner API for WordPress Shops to Offer Web Hosting Web Hosting News 2012-08-30 16:46:36
Cloud Host Client Intellect Launches WordPress Cloud Hosting Service Web Hosting News 2012-04-03 13:38:49
Web Host Nexcess Launches WordPress Platform for Blog Hosting Web Hosting News 2011-11-14 17:56:42
Blogging Platform Wordpress.com Adds .ME Domain Extensions Web Hosting News 2011-10-21 14:25:28
WordPress Forces Password Reset After Suspicious Activity on Plugins Detected Web Hosting News 2011-06-22 14:56:47


Tags
100% cpu, cpu, high cpu, stablehost, wordpress

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?