High CPU usage – wp-cron and wp-ajax related Question
-
Hi,
I have a site and repeatedly having 100% CPU usage. It is caused either when we try to add/edit a post, go to plugins page – mostly when I log in as admin and enter the wp-admin area. So I have been doing some basic investigation and find the followingToo many hits on wp-cron.php every day I get close to 1000 hits on that file
if i type <sitename>/wp-cron.php I have disabled direct access via htaccess
Yet so many hitsI also have this in the wp-config
define('DISABLE_WP_CRON', true);
My host says that it may be that as wp-cron keeps running it may be a cause of 100% CPU usage. So any way to limit execution of file?
The second file that has most hits/queries is
wp-admin/admin-ajax.php
That is over 700 hits daily. So can someone guide if we can limit usage of the same?
If a user just browsing the site its fine – load speeds are under 2 seconds. But if they try to perform some function – like add to cart Woocommerce, proceed with order etc then it seems to slow down and CPU usage seems to increase.
Currently I have 1GB RAM with 1 Core CPU and SSD hosting. So any suggestions?
- The topic ‘High CPU usage – wp-cron and wp-ajax related Question’ is closed to new replies.