CMS & WordPress
albertocv — 2012-04-24T11:53:38-04:00 — #1
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?
system — 2012-04-24T12:57:34-04:00 — #2
in google search as word press optimization guide, I guess this search should resolve the issue
albertocv — 2012-04-25T04:05:22-04:00 — #3
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.
slackr — 2012-04-26T00:10:59-04:00 — #4
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.
albertocv — 2012-04-26T05:29:09-04:00 — #5
Yes, I talked to them more than once about this, but they couldn't help me.
nikunj_gandhi — 2012-04-28T10:24:09-04:00 — #6
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/>
albertocv — 2012-04-28T10:26:53-04:00 — #7
Thank you, does it ping also when you edit a draft. Isn't ping made only after publishing?
nikunj_gandhi — 2012-04-28T10:41:43-04:00 — #8
No editing and save as draft is not ping any request.
albertocv — 2012-04-29T06:01:39-04:00 — #9
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?
mittineague — 2012-04-29T12:39:23-04:00 — #10
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"
albertocv — 2012-04-30T05:40:26-04:00 — #11
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.
mittineague — 2012-04-30T19:36:29-04:00 — #12
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.
albertocv — 2012-05-01T04:01:21-04:00 — #13
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.
mittineague — 2014-09-22T02:26:33-04:00 — #14
This topic is now archived. It is frozen and cannot be changed in any way.