My Google Cloud Compute Engine Wordpress based website keeps askiing for more cpus and more memory - GBs of it
Solution 1:
As Tim advised on his comment, you will need to investigate your VM further. You said that you are getting a DB Connection error, you can start there and identify first its root cause. Also, recommendations are just suggestions based on the performance of your VM. As stated in the GCP documentation:
Note: You might have valid reasons for running a particular instance at very low or very high utilization. Sizing recommendations are suggestions to help you more efficiently use your instances, but they might not be appropriate for every situation.
For a more precise monitoring of your VM, you can use a Cloud Monitoring agent. It can access system resources and app services for a more detailed monitoring that can help you identify what is causing the unusual resource consumption.