There are a few topics on here about high CPU have you read the.
As before, I think you will find this is down to a WP plugin (badly coded) or requiring an update. have you checked that MariaDB is still running and any php logs for problems?
4 CPU is certainly good enough. I would say 8Gb is a little on the light side. But I assume memory is not the problem. Check the logs as always. the CPU will always go up intermittently for example when to view stats in the Dashboard but will drop back very quickly.
yes i checked topics about CPU Usage but didn’t find an answer to my issue.
My WP is up to date also all plugins ( i use only 7 plugins cause i don’t want to supercharge website)
i checked error pages and see those lines :
#5 {main}
thrown in /home/happyhand/public_html/wp-content/plugins/really-simple-ssl/lets-encrypt/class-letsencrypt-handler.php on line 1715
[19-Nov-2023 17:30:08 UTC] PHP Warning: Undefined array key “returnvalue” in /home/happyhand/public_html/wp-content/plugins/wp-rocket/inc/Engine/Optimization/RUCSS/Frontend/APIClient.php on line 101
[19-Nov-2023 17:30:09 UTC] PHP Warning: Undefined array key “returnvalue” in /home/happyhand/public_html/wp-content/plugins/wp-rocket/inc/Engine/Optimization/RUCSS/Frontend/APIClient.php on line 101
But the big question is :
Why CPU usage for webmin theme and stats is 47 % and 28 %
It should be only transient (even ith a single core) there is quite a lot of work to do. but I would go into theme settings and at least reduce it to 24hrly (I think that is default) there are other settings that may help. 47% transient when viewing Dashboard doesn’t seem that bad mine spikes > 80% (2 core)
Exactly the important number here is load averages over time for instance from one minute to another its just under 15% not terrible. Both at 1 and 5 minutes.
Spikes mean that your processor is being allocated properly when something is being demanded from webmin it should have priority in theory you want to be able to get on your server and get information have priority and fix things at god speed more or less what you are seeing I feel is not atypical from a load averages perspective. Transients when using the interface for data gathering are intensive to get you your information from multiple sources and do it quickly many operations are taking place there behind the scenes you may have 300+ processes running and lord knows how many are being executed to grab your data and give it to you nearly in real time in readable format. Its gotta collect all of this data from multiple sources and processes and parse all of that feedback and give it to you in readable format and do it quickly. Any software that does this is intensive even if your not running a server and you run similar software on a desktop you’ll experience the same jump in CPU use.
That is quite a few more than the standard Virtualmin install. I’m not sure what those extra ones are doing. Perl is installed anyway - those extra ones look to me like 3rd party modules. I wonder where they have come from and why they are there.
Oh, actually, you’re right, OP does have quite high load. I glanced and just thought “OK, he caught it at a bad time”, but 15 minute load average is 14, which is a lot.
So, OP, almost all of your CPU is going to php-fpm, so the app in happyhand is working hard. Figure out what app or plugin is doing it, and disable it and find an alternative, or fix your database queries if it’s your own code. (Turn on slow query logging in your database, perhaps, to help troubleshoot.)
@stefan1959 did not wrap code in a code block. Use triple backticks to open and close a code block or a single backtick to open and close code within regular text…e.g. netstat -ant | grep -E ':80|:443' | wc -l or:
netstat -ant | grep -E ':80|:443' | wc -l
Not wrapping code in backticks leads to the editor replacing quote symbols with “smart” quotes, which are nonsense to your shell.