Angular universal app loads very slow hosting on aws ec2

169 Views Asked by At

I have angular universal app hosting on aws ec2 which suddenly start loading very slow. Sometimes it loads fast but sometimes it takes almost 10 sec to make the connection to server then starts loading the app. These images are not more than 15kb and its taking 2-3 sec just to load them. For the js file its taking 5-6 secs sometimes it takes 11 secs to load main js file and the size is only 357kb.

enter image description here

enter image description here

Can anyonce please suggest what is issue is it angular app that is causing the issue or aws ec2 and how can I fix this

0

There are 0 best solutions below