I have encountered an issue with a GCP Linux instance where CPU utilization suddenly spiked to 100% and remains constant. Interestingly, when I SSH into the server, CPU usage immediately drops to normal levels. Upon exiting the SSH session, CPU utilization spikes again.
I Monitored and identified high CPU usage processes but found no ongoing intensive tasks. I also Reviewed crontab, systemd processes, syslog, and kernel logs for any anomalies or scheduled tasks but found no conclusive evidence. Lastly I Developed scripts to log CPU usage intermittently using htop and top, which did not reveal the root cause of the issue.
now I am not sure what to do coz it's crazy.