Use the app’s Settings tab to remove domains associated with App Platform apps.
Why is my app's database connection timing out?
Last verified 27 Nov 2026
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 isn’t using most of its CPU, check that its database connection configuration is correct. If you use a DigitalOcean Managed Database, review your connection parameters.
If your app connects to a database over a VPC network and reuses long-lived connections, such as through a connection pool, the platform expires connections that remain idle for a few minutes. Reusing an expired connection can cause intermittent timeout errors, such as read ETIMEDOUT, after periods of low traffic.
To prevent this, enable TCP keepalive in your database client with an interval of less than 60 seconds, such as keepAlive: 30000 in ioredis. Alternatively, configure your connection pool to discard idle connections before they expire. For more information, see Idle Connections to VPC Resources.
Related Topics
Increase the heap memory by setting the environment variable NODE_OPTIONS=–max-old-space-size=4096.
Delete the existing dev database and create a new one. Then make sure that the app deployment completes successfully.