Postgres DB Hosted in VM in Compute Engine Hangs after utilizing high amounts of CPU

Postgres DB Hosted in VM in Compute Engine Hangs after utilizing high amounts of CPU.

Normally, the database works fine and everything is OK. Suddenly after every 7-8 months the VM instance suddenly gains high CPU utilization and it stops working. Then I have to manually shut down the VM and start it again. Then assign the new IP Addressess to my web app and it works okay.

Why does this occur? There is no abnormal usage of web app in these instances. This is at random.

enter image description here

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum