Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EC2 Instance is running very slow

I am running an EC2 Instance on Ubuntu Server machine. Tomcat and MySQL are installed and deployed java web-application on it since 1 month. It was running good with great performance for almost 1 month but now my application is responding very slow. Also, point to note is: Earlier when I used to log into my Ubuntu Server through PuTTY, it was quick but now its taking time even when I enter Ubuntu password.

Is there any solution?

like image 365
Simar Avatar asked Aug 27 '15 06:08

Simar


1 Answers

I would start with checking with memory/CPU/network availability to check if it is not bottleneck.

Try following commands:

  • To check memory availability:

    free -m

  • To check CPU usage:

    top

  • To check network usage:

    ntop

  • To check disk usage:

    df -h

  • To check disk io operations:

    iotop

Please also check if when you disable your application you are able to quickly log in to that machine. If login is still slow, then you should contact your EC2 support complaining about poor performance and asking for assigning more resources for that machine.

like image 94
Krzysztof Kazmierczyk Avatar answered Oct 06 '22 00:10

Krzysztof Kazmierczyk