By casedo
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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.