As per your screenshot, CPU is about 15% with CPU credits balance decreasing before it freezes. Baseline CPU for t2.micro for is about 10%, the credits may be exhausted when this happens. You can change T2 instance to Unlimited mode. This may incur additional charges if your average utilization over a rolling 24-hour period exceeds the baseline utilization of the instance.
t2.micro has 1 vCPU and 1 GB RAM. Another reason could be your applications exhausting all available memory and/or available disk space resulting in errors. To monitor memory and disk space usage, you can install CloudWatch agent as per How can I send memory and disk metrics from my EC2 instances to CloudWatch?
Alternatively, you may qualify for t4g free trial. t4g.small has 2 vCPU and 2 GB RAM. However, you will need to create a new Ubuntu instance, and your application must support arm64 architecture. More info in FAQ
What is the CPU usage and memory usage?
In particular, t2.micro, which can be used in the free tier, runs while consuming something called CPU burst credits when the CPU usage rate is high.
Once these CPU burst credits are consumed, the CPU performance will drop to the baseline throughput, so there is a high possibility that the performance needed to run the application will not be fully utilized.
- AWS OFFICIALUpdated 8 months ago
- EXPERTpublished 9 months ago