I have this t2.micro EC2 instance on AWS running two experimental REST services and MySQL inside Docker, receiving REST calls from sources external to EC2. One instance is HTTP on port 81 the other is HTTPS on 443.
Occasionally the CPU shot up to 100% based on CloudWatch but without much spike in network or disk activities. The result of these were that I was unable to SSH into this instance each time.
My local logs to text file does not show much that the REST server was doing much. What could be the causes and how do I even begin to diagnose the problem? If I can't SSH into this machine is it possible to know which process is using up that CPU cycles?
EDIT: BTW, the EC2 console did say the instance was still green when all this happened — running.