Make WordPress Core

Opened 5 years ago

Last modified 11 months ago

#10770 new defect (bug)

wp-cron uses excesive CPU cycles

Reported by: jbevans Owned by:
Milestone: Future Release Priority: normal
Severity: critical Version: 2.9
Component: Cron API Keywords: reporter-feedback
Focuses: Cc:


Users are suddenly finding their accounts suspended because of excessive CPU cycles. However after investigating it appears the web hosting companies are properly configured and no hacks have occured. It seems that wp-cron is looping and consuming huge amounts of cpu cycles.

This occurs across the past several versions on fully updated versions.

The effect:
Excessive CPU cycles with resulting suspension of a users account.

Plugins and Theme:
I detect no relationship to plugins and themes. I am presently running only 8 plugins.

Sadly, this is an intermittent issue. But a check of the Wordpress.org forum will show regular questions about this problem.

Server Environment:
Host is http://www.inmotionhosting.com. Fully updated and seemingly well maintained.

There is a link from a 2.6 problem at http://trinity777.wordpress.com/2008/10/28/wordpress-26-the-issue-of-wp-cronphp/. Although it refers to an old version I think the issue is still unresolved and his work might prove useful to you.


Change History (5)

comment:1 dd325 years ago

  • Keywords reporter-feedback added; suspension excessive cpu cycles removed
  • Milestone changed from Unassigned to Future Release

Can you supply the cron-related options from the database? From memory, it's 'wp_cron' or similar (has cron in it at least)

They'll show us what entries are there, and might help pinpoint why its taking so long..

Note, That later versions of WordPress include major cron improvements, So a 2.6 bug may not still exist, it just appears to create the same end result.

comment:2 pavelevap5 years ago

  • Cc pavelevap@… added

I can confirm this issue. Same script (using wp cron functions) on two servers and on one of them there was sometimes excessive CPU overload. I tried many things, but did not find why it happens (latest WP version 2.8.x)...

comment:3 johnbillion5 years ago

jbevans, pavelevap,

If possible could you both please provide either a dump of the data in the 'cron' row of the wp_options table or, preferably, install a cron schedule viewing plugin such as <a href="http://wordpress.org/extend/plugins/cron-view/2>Cron View</a> and provide the listing from the plugin?

comment:4 washer4 years ago

I am currently investigating this problem as well. I have a servint VPS with 30 wp blogs, and excessive cpu usage problems. There are at least 100 mentions of this dating back to around version 2.5.

It appears the spikes take place for extended periods during the running of cron. At this point in my search for answers, it appears it is the ping list causing the extended spikes (ping list too large, sites down, etc) and may be the problem.

I have replaced the default pingomatic and removed the customized ping list and the server has since quited down. I am still watching this, and was hoping to see if others have looked at this as well.

comment:5 avryl11 months ago

  • Component changed from General to Cron
Note: See TracTickets for help on using tickets.