server on ec2 instance is working slow

0

I am running one of the applications on the instance but sometimes it's working so much slower. And when I am running the command tracert jjdigitizing.com to check response time, it is too much with many hops. So I think there are some network configuration issues. How can i minimize our server's %iowait when run iostat command? Anyone, please give me a solution

asked a year ago520 views
4 Answers
0

There are many things to check here.

But first: Let's look at the network part.

The internet is big and (more or less) completely out of your control. Traceroute is not the best tool to use in this case - yes, it can show you that path that your packets are taking but you can't do anything about that other than change the internet provider where you are - and even then it may not help that much.

If the round-trip time to your instance is too high (and that can easily be checked with a tool such as ping) then the best thing to do is run the instance in another AWS region that is closer to you. That will reduce the latency and give you better performance.

Note that high latency will mean longer response times for your application so reducing it is important; but it's not the only factor. The network has nothing to do with %iowait times, CPU utilisation, memory usage and so on. All of those things are down to the instance type, the storage type and the application that you're running.

You need to look at all of the instance metrics available in CloudWatch and the process metrics available in the operating system to determine where the performance issue is. It might be that you're consuming all of the CPU or memory - a larger instance is the answer here. It might be that you need more IOPS in EBS. Increasing those or moving to a larger instance is going to cost more so watch out for that.

Finally, the "t" series instance run on a burstable CPU utilisation model and this means that you may get excellent performance for some time; but then as CPU credits are used the performance drops. Here again a larger instance may help; "Unlimited mode" may also help; or moving to a different instance type might be the answer.

profile pictureAWS
EXPERT
answered a year ago
  • Hello

    Moving to instances in another region may be not a good option because servers can be accessed from anywhere in the world. Our customers belong to many different countries. Mostly from USA and India. So how can I decide the nearest region for our server? And when I am running the command tracert jjdigitizing.com to check response time, it is too much with many hops. After entering into aws , it's taking too many hops to reach our server (jjdigitizing.com), and also there are many request time-out entries as hops in tracert jjdigitizing.com So what's wrong with network configuration at your end or our end.

    And also check below command line output for tracert

  • As above: You can't control the network path; you can only (roughly) control distance by choosing a different region. If you are serving customers from multiple geographic areas you should consider using CloudFront and ensuring that content for your application can be cached. If your application is not web-based then Global Accelerator could be an option. You could also run your application in multiple regions; but this introduces a lot of complexity in terms of keeping data synchronised globally - but is has the benefit (even when using Global Accelerator or CloudFront) of having the content closer to the users and having the network determine the best (i.e. closest) path to the content.

0

I am using t3a.xlarge type instance

answered a year ago
0

Hello

Moving to instances in another region may be not a good option because servers can be accessed from anywhere in the world. Our customers belong to many different countries. Mostly from USA and India. So how can I decide the nearest region for our server? And when I am running the command tracert jjdigitizing.com to check response time, it is too much with many hops. After entering into aws , it's taking too many hops to reach our server (jjdigitizing.com), and also there are many request time-out entries as hops in tracert jjdigitizing.com So what's wrong with network configuration at your end or our end.

Command Line C:\Users\SWASTIK>tracert jjdigitizing.com

Tracing route to jjdigitizing.com [184.169.206.7] over a maximum of 30 hops:

1 8 ms 74 ms 315 ms reliance.reliance [192.168.29.1] 2 114 ms 8 ms 6 ms 10.4.40.1 3 11 ms 9 ms 10 ms 172.16.25.113 4 9 ms 12 ms 13 ms 192.168.103.52 5 11 ms 318 ms 8 ms 172.26.108.133 6 12 ms 15 ms 12 ms 172.26.108.147 7 11 ms 12 ms 15 ms 192.168.38.92 8 * * * Request timed out. 9 * * * Request timed out. 10 * * * Request timed out. 11 129 ms 44 ms 43 ms 103.198.140.170 12 350 ms 324 ms 271 ms 49.45.4.85 13 250 ms 255 ms 252 ms 99.83.65.60 14 * * * Request timed out. 15 * * * Request timed out. 16 * * * Request timed out. 17 * * * Request timed out. 18 * * * Request timed out. 19 * * * Request timed out. 20 * * * Request timed out. 21 272 ms 259 ms 329 ms 205.251.230.118 22 * * * Request timed out. 23 * * * Request timed out. 24 * * * Request timed out. 25 * * * Request timed out. 26 * * * Request timed out. 27 * * * Request timed out. 28 * * * Request timed out. 29 * * * Request timed out. 30 257 ms 261 ms 257 ms cajjdigitizing.demodeep.com [184.169.206.7]

Trace complete.

answered a year ago
0

Find the below file as tracert command output

tracert command

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions