[wp-trac] [WordPress Trac] #33807: overload proceesor

WordPress Trac noreply at wordpress.org
Thu Sep 10 16:07:26 UTC 2015


#33807: overload proceesor
--------------------------+-----------------------------
 Reporter:  ramymelegy    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Cron API      |    Version:  4.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 i have a wordpress on ubuntu server all last update
 after i upgrade to last version wordpress sudenly the processor full (8
 cores)
 i upgrade my server to 16 core and still overloading
 after that i do the below
 Step 1. Fix the actual issue by applying part of the patch in that ticket.
 It's a one liner. Open the wp-includes/taxonomy.php file, and go to line
 4448. This is that line:

 wp_schedule_single_event( 'wp_batch_split_terms', time() +
 MINUTE_IN_SECONDS );

 The problem is that the arguments are reversed. Switch them, like so:

 wp_schedule_single_event( time() + MINUTE_IN_SECONDS,
 'wp_batch_split_terms' );

 That will fix the underlying issue, but it won't stop the load. To do
 that, we're going to make a temporary mu-plugin.

 Step 2. Navigate to your /wp-content directory. Create a subdirectory
 called "mu-plugins", at /wp-content/mu-plugins. The name of the directory
 is important. If you already have that directory, just go in there.

 Create a new file called "fix.php".

 <?php
 function clear_bad_cron_entries() {
         // Fix incorrect cron entries for term splitting
         $cron_array = _get_cron_array();
         if ( isset( $cron_array['wp_batch_split_terms'] ) ) {
                 unset( $cron_array['wp_batch_split_terms'] );
                 _set_cron_array( $cron_array );
         }
 }
 clear_bad_cron_entries();
 i want to inform you thats fix my problem and hope to upgrade soon to
 solve this problem
 regards

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33807>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list