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!
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.
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
ortop
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