Increase the heap memory by setting the environment variable NODE_OPTIONS=–max-old-space-size=4096.
Why is my app's database connection timing out?
Validated on 17 Jan 2025 • Last edited on 13 Feb 2025
High CPU utilization can cause timeouts between your app and database. Check your app’s CPU utilization and, if your app is using most of its CPU, consider either scaling your app to have additional CPU resources or reducing concurrency in your app to reduce the CPU load.
If your app is not using most of its CPU, check your app’s connection configuration and ensure it is correct. If you’re using a DigitalOcean Managed Database, review your connection parameters.
Related Topics
Delete the existing dev database and create a new one. Then make sure that the app deployment completes successfully.
You cannot add the same domain name to multiple apps or split an app and domain name across more than one account.