Why does my AWS EC2 (t3.medium) hang for ~60 seconds before responding, but only on certain browsers?

0
9
Asked By Skywalker88 On

Hey everyone! I'm facing a pretty annoying issue with my AWS EC2 instance, and I'm hoping someone can help me out. I'm running a t3.medium instance with Ubuntu 24.04 and Apache 2.4.58. Lately, whenever I try to access files on the server, there's a consistent delay of about 60 seconds before the page loads. This lag happens regardless of which browser or internet connection I use, but interestingly, it doesn't occur at all in Safari. It's been happening since I switched the instance from a t2.large to a t3.medium, which has less RAM. I can't see any issues in the AWS monitoring tools, but I'm not sure what I'm looking for. Any insights would be appreciated!

1 Answer

Answered By TechNerd123 On

It sounds like that delay might be related to DNS resolution issues that occur with each client connection. Since you switched to an instance with less memory, that could definitely be a factor. Remember, t-series instances are burstable and rely on a credit system for CPU power, so if your instance is running heavy scripts, it could be throttling. A good way to test this would be to switch back to the t2.large instance and see if the problem persists. Also, if you're new to AWS, keep in mind that the default monitoring tools may not give you a clear picture of memory usage; you might want to set up a CloudWatch agent for deeper insights.

CuriousCoder77 -

Thanks for your help! I'll try switching back and see what happens. I'm confused about why Safari is the only browser that works smoothly. It's usually the one that gives me problems, not the other way around!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.