I’ve been monitoring my stats with nixstats over the last few weeks and overall CPU usage has been around 25% with server loads hanging out around 0.2 to 0.6.
Nothing too special with 3 WordPress websites running on a 2-core 4GB RAM VPS.
However, this weekend I noticed CPU usage hitting up to 70% and server loading going as high as 4.3. Looking at my nixstats service, the only thing out of the ordinary seemed to be php-fpm7.0
As of right now, 9AM (not a busy part of the day), php-fpm7.0 is eating up 50% of my allotted CPU resoureces, whjlie other services like nginx, redis server, mysqld are between 1 and 3% total.
I’ve tried reboots, restarts, shut downts, and have upgraded server components
Although in this last part, I am being told that Redis has changed that I have kept it the same due to paranoia that it will impact my current setup.
I’m using Redis for cache with the Simple Cache plugin to handle things. This has been fine for weeks but I may need to experiment and try a different cache plugin.
I thought that maybe it was because wp-cron was being hit too much so last night I put
- define(‘WP_CRON_LOCK_TIMEOUT’, 900);
in each of the wp-config.php files for those three servers. But it doesn’t seem to help. I mean, CPU usage isn’t at 70% right now, but again, it’s just 9AM so I expect this to go up as more people wake up.
Does anyone have a clue as to what is going on. I don’t recall making any additional changes to the server other than getting rid of AMP for WP due to its security issue and swithcing to the official AMP plugin from Google in the WP respository.