node.js backend for api becomes unresponsive from time to time
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!
Hi there,
Are you seeing a specific error when this happens? Would you mind sharing a bit more information about your setup?
If you are using a Droplet, here are a few things you might want to check:
Check the CPU and memory usage of your Droplet. High usage can cause your Node.js app to become unresponsive.
htop
or top
to monitor resource usage in real-time.Inspect your application logs and system logs for any errors or warnings that might indicate what’s causing the unresponsiveness.
/var/log/syslog
or /var/log/messages
for system-level issues.If your app connects to a database, ensure that your database is running smoothly and is not a bottleneck.
If you are using the DigitalOcean App Platform:
Feel free to provide more details about your setup and the issues you’re encountering, and I’ll be happy to help further!
- 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.