- Newest
- Most votes
- Most comments
Based on the symptoms you've described, it appears your AWS-hosted server is experiencing intermittent connectivity issues that are affecting both remote access and website availability. This type of problem can have several potential causes at the infrastructure and network level. Here are some areas to investigate:
-
Instance Health: Check the EC2 instance status in the AWS console to ensure it's in a "running" state and passing all status checks. Sometimes, underlying hardware issues can cause intermittent connectivity problems.
-
Network Configuration: Verify that your security groups, network ACLs, and VPC settings are correctly configured and haven't been inadvertently changed. Misconfigured network settings can lead to sporadic connectivity issues.
-
Resource Utilization: Monitor your instance's resource usage using AWS CloudWatch. Look for any spikes in CPU, memory, or disk usage that could be causing the instance to become unresponsive. Even if CPU usage appears normal during RDP sessions, there might be periodic spikes causing issues.
-
Instance Type and Credit Balance: If you're using a burstable instance type (like t2 or t3), check your CPU credit balance. When these instances exhaust their CPU credits, performance can degrade, leading to connectivity issues.
-
Elastic IP: Consider associating an Elastic IP with your instance if you haven't already. This can help maintain a consistent public IP address and potentially mitigate some connectivity issues.
-
Auto-recovery: Enable the auto-recovery feature for your EC2 instance. This will automatically recover the instance if it becomes impaired due to underlying hardware issues.
-
Region or Availability Zone Issues: Check the AWS Service Health Dashboard to see if there are any reported issues in your region that might be affecting your instance.
If these steps don't resolve the issue, you may want to consider:
-
Instance Recovery: Try stopping and starting the instance (not just rebooting) to move it to new underlying hardware. This can sometimes resolve persistent issues.
-
Creating an AMI: Create an Amazon Machine Image (AMI) of your current instance and launch a new instance from this AMI. This can help determine if the issue is specific to the current instance or if it persists on new hardware.
-
Detailed Monitoring: Enable detailed monitoring temporarily to get more granular data on your instance's performance, which could help identify patterns or specific times when issues occur.
Given the business impact of these disruptions, it's advisable to engage AWS Support directly if these steps don't resolve the issue. They can provide more in-depth analysis of your specific instance and the underlying infrastructure.
Sources
EC2 suddenly gets online and offline randomly | AWS re:Post
Connectivity Issue to EC2 Instances | AWS re:Post
Recurring Website Access Issues with Amazon Lightsail Instance | AWS re:Post
Relevant content
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago
If you need AWS support, please do open a support case. You can get to the support console at the top of this page under Resources > AWS Support Center. re:Post is a community forum and cannot provide direct support or troubleshooting services.