# Why is my app's database connection timing out? High CPU utilization can cause timeouts between your app and database. [Check your app’s CPU utilization](https://docs.digitalocean.com/products/app-platform/how-to/view-insights/index.html.md) and, if your app is using most of its CPU, consider either [scaling your app](https://docs.digitalocean.com/products/app-platform/how-to/scale-app/index.html.md) 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](https://docs.digitalocean.com/products/app-platform/how-to/manage-databases/index.html.md#connect-to-a-dev-database) and ensure it is correct. If you’re using a [DigitalOcean Managed Database](https://docs.digitalocean.com/products/databases/index.html.md), [review your connection parameters](https://docs.digitalocean.com/products/databases/postgresql/how-to/connect/index.html.md). ## Related Topics [How do I fix the error "Record is managed by an App on this account, and cannot be deleted"?](https://docs.digitalocean.com/support/how-do-i-fix-the-error-record-is-managed-by-an-app-on-this-account-and-cannot-be-deleted/index.html.md): Use the app’s Settings tab to remove domains associated with App Platform apps. [Why do I get the error “JavaScript heap out of memory” during deployment?](https://docs.digitalocean.com/support/why-do-i-get-the-error-javascript-heap-out-of-memory-during-deployment/index.html.md): Increase the heap memory by setting the environment variable NODE\_OPTIONS=–max-old-space-size=4096. [How do I fix a "permission denied for schema public" error in my dev database?](https://docs.digitalocean.com/support/how-do-i-fix-a-permission-denied-for-schema-public-error-in-my-dev-database/index.html.md): Delete the existing dev database and create a new one. Then make sure that the app deployment completes successfully.