- Newest
- Most votes
- Most comments
Based on the symptoms you've described, it appears that your EC2 instance is experiencing a network connectivity issue that occurs periodically. This problem could be related to several factors, but one likely cause is a time synchronization issue.
By default, Windows instances use Coordinated Universal Time (UTC). If the instance's time is set to a different time zone and then restarted, it can cause a time offset. This offset can lead to the instance temporarily losing its IP address, which results in network connectivity issues. The instance usually regains network connectivity eventually, but this process can take several hours.
The symptoms you're experiencing align with this scenario:
- Loss of network connectivity
- Inability to access the internet or AWS services
- SSH connection failures
- The issue resolves after a reboot
To address this problem, you should ensure that the RealTimeIsUniversal registry key is set on your instance. This key allows the instance to use a time zone other than UTC persistently. Without this key, the instance reverts to UTC after a restart, which can cause the connectivity issues you're experiencing.
The CPU usage spike you're observing during the outages could indeed be a result of the network connections failing or timing out, as your application might be continuously attempting to re-establish these connections.
To resolve this issue:
- Set the RealTimeIsUniversal registry key to 1 on the affected instance.
- Ensure that the instance is running the recommended Paravirtual (PV) drivers.
- Check that the instance's time settings are correct and consistent.
If the problem persists after implementing these changes, you may want to investigate other potential causes such as:
- Security group or network ACL configurations
- Instance health (run a status check)
- Underlying hardware issues (in which case, replacing the instance might indeed be necessary)
Remember to regularly back up your data and consider implementing an Auto Scaling group to automatically replace unhealthy instances if this continues to be an issue.
Sources
Troubleshoot issues with Amazon EC2 Windows instances - Amazon Elastic Compute Cloud
Troubleshoot website connectivity on EC2 Windows instance | AWS re:Post
Instance resiliency - Amazon Elastic Compute Cloud
answered 2 years ago
Without looking at any logs, it sounds like memory exhaustion.
If you havent, install cloudwatch agent and monitor memory usage.
Suggest upgrading to xlarge
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 6 days ago

My instances are both Amazon Linux and I checked to make sure they are both time synchronized properly.
I think without you providing the exact logs it will be difficult to really know what happened