- Newest
- Most votes
- Most comments
The issue you're experiencing with your t2.micro and t3.micro instances becoming unreachable after some time is likely related to resource constraints, even though you've tried to address the CPU credit limitation. Here are some potential causes and steps you can take to investigate:
-
Memory exhaustion: While you've addressed CPU credits, your minigame server might be consuming all available memory, causing the instance to become unresponsive. T2 and T3 micro instances have limited memory (1 GB), which may not be sufficient for your application.
-
Swap space: If your instance doesn't have swap space configured, it might crash when memory is exhausted. Adding some swap space could help manage memory usage and potentially prevent crashes.
-
Network or I/O issues: High network traffic or disk I/O could cause the instance to become unresponsive.
To investigate the root cause, you can:
-
Monitor CloudWatch metrics: Check CPU utilization, memory usage, network in/out, and disk I/O. This will help you identify if any resource is consistently maxed out.
-
Check system logs: After rebooting the instance, examine the system logs for any error messages or warnings that occurred before the crash.
-
Use the EC2 Console Screenshot Service: This can provide a screenshot of the instance's console output, which might reveal any error messages during the unresponsive state.
-
Consider upgrading: If resource constraints are the issue, consider upgrading to a larger instance type that can handle your workload more consistently.
-
Application logs: Check your minigame server logs for any application-specific errors or resource-intensive operations that might be causing the instance to become unresponsive.
By gathering this information, you'll be better equipped to identify the true cause of the issue and take appropriate measures to resolve it, whether that involves optimizing your application, adding more resources, or choosing a more suitable instance type for your workload.
Sources
Common screenshots to troubleshoot unreachable Windows instances - Amazon Elastic Compute Cloud
t2.micro crashing whenever I access with VScode | AWS re:Post
Instance stop working | AWS re:Post
AWS instance intermittently unresponsive behavior | AWS re:Post
Relevant content
- asked a year ago
- Accepted Answerasked 5 years ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago