CMS & WordPress
I have a Wordpress blog at www.fotocomefare.com, hosted on bluehost, Wordpress version 3.3.1.
I'm experiencing an annoying problem. In some cases CPU throttling, as reported by Bluehost jumps to over 3600 seconds per hour.
Obviously, this isn't possible and the support told me that it must be some wrong plugin. I have several plugins, and most of them cannot be disabled for testing purposes, so as not to disrupt user experience.
I noticed that the problem appears mostly when I am editing posts and pages. Sometimes, throttling engages simply because I just did login.
So, I suspect it is something related to the dashboard or only to logged in users.
Do you know a way to correctly diagnose the problem?
in google search as word press optimization guide, I guess this search should resolve the issue
Well, I already did similar searches a number of times.
As you can see if you read about WP optimization, tutorials and guides always regard almost only the optimization of loading time, not the response time.
When a site is throttled, it means that it is using too much of the cpu on the shared server. Usually, on a Wordpress site, it is due to bad plugins and/or too long queries.
With regard to this problem, the tips I always found only suggest to disable all plugins and try reactivating them one at a time. However, for many of the plugins I'm using I'd prefer not doing that, since it would ruin user experience.
So my question was about how to identify potential causes of heavy cpu usage and not how to optimize loading time.
I'm assuming that you've talked to Bluehost already about this? Often they can see what is happening server-side which may not be showing up in the logs and error reports available to you.
Yes, I talked to them more than once about this, but they couldn't help me.
Check Your Ping setting going setting--> Writing.check removing ping sites It may possible some ping site has timeout and takes to much time when you edit post.I have problem with them with my recent WordPress site <snip/>
Thank you, does it ping also when you edit a draft. Isn't ping made only after publishing?
No editing and save as draft is not ping any request.
And what about the spike in cpu load at login?
It happens around once per day, but not every time I log in. What is executed by Wordpress at login?
Do you have a lot of "cron" going on? WordPress doesn't do "real" cron, but performs such tasks when certain things are first accessed after a given time period. It sounds like you have some admin cron happening.
Try scanning your files for "wp_schedule_event"
I was only starting to suspect something about cron. These are the scheduled events in cron:
As you can see, there is nothing so strange. And, more importantly, there is almost nothing I can remove, since most of the events are related to w3tc, dbmanager, or wp itself.
If you need them. you need them. But hopefully you can stagger their execution to spread the resource use out. i.e.
wp_schedule_event($timestamp, $recurrence, $hook, $args);
Can you change the $timestamp values? If they're all "midnight" having each - or at least the heavy hitter - separate should help.
And maybe you can reduce the recurrence values? Not sure if that would help much, it might just pile things up unless there's a lot of redundancy.
Thank you, wise advice.
My biggest problem is that they are all scheduled by plugins or by wordpress itself, so I'd have to change their source code.
Fortunately, I can write code, but every time I will update I'd have to redo the modifications.
This topic is now archived. It is frozen and cannot be changed in any way.