PostgreSQL

Connection count approaching max_connections causes connection failures

critical
Connection ManagementUpdated Feb 15, 2026
Technologies:
How to detect:

Active connections approach or reach the max_connections limit, preventing new connections from being established. check_postgres monitors proximity to this limit.

Recommended action:

Monitor connection count and proximity to max_connections threshold using check_postgres or query pg_stat_database. Consider increasing max_connections if consistently near limit, or implement connection pooling to reduce connection overhead.