Question

Server Response Time slow and differs

Posted November 24, 2020 582 views
NginxNode.jsServer Optimization

I am using 1 GB Memory / 25 GB Disk / NYC3 - Ubuntu 18.04.3 (LTS) x64

In general, for approximately 100 kb static file download, server responds within second but today I have realized sometimes it takes more than 10 - 20 seconds.

Why does this fluctuate ? CPu usage is always constant and around %5, bandwidth usage is around 100 kb/s

What do you suggest for making more stable server and reduce the respond time ? Where should I start to examine this issue ?

backend: node.js, nginx

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hello,

One thing that you could try doing is to enable a CDN service for your website like Cloudflare. They have a free package which you could try out and see if it improves the performance.

Also, I would recommend also checking your memory consumption. As you only have 1GB in case that it is not enough to handle your application, you might have to increase that a little bit.

Also this is quite a huge delay, usually, I’ve seen those happening when the application tries to connect to an external service like an API for example, and the API response could slow the whole thing down. I would recommend checking the requests that your app is making in order to make sure that this is not the case.

Regards,
Bobby