WP-Cron hogging CPU (and memory) on VPS
-
Hi,
Running a VPS with a WordPress Multisite 4.1.1, I notice sporadic bursts in very high (near 100%) CPU usage. Memory is also maxed out on PHP processes.
These bursts seem to come without warning and last until I either set
define('DISABLE_WP_CRON', true);
in wp-config.php or simply ‘after a while’ or until the server comes to a grinding halt.
Access logs show many (very many!) entries with
"POST /wp-cron.php?doing_wp_cron=1425301287.7601780891418457031250 HTTP/1.0" 499 0
where the response status code 499 is thrown by Nginx and stands for “client has closed connection”. In the meantime I see many “Connection reset by peer” errors in the error log. But this confuses me. How would I interpret that in the context of a wp-cron job?
Are there any tools to find out what exactly is causing so many wp-crons running at the same time, what they are actually doing and why they are so slow?
Thanks for any tips about debugging this 🙂
- The topic ‘WP-Cron hogging CPU (and memory) on VPS’ is closed to new replies.