Opened 11 years ago
Closed 11 years ago
#33807 closed defect (bug) (duplicate)
overload proceesor
| Reported by: | ramymelegy | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Cron API | Version: | 4.3 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description (last modified by )
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
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi ramymelegy, welcome to trac.
Thanks for your report. We're tracking this issue in #33423, it will be fixed with the next minor release.