Skip to content

PostgresException: 53300: sorry, too many clients #1493

Answered by jokokko
ulaskalok asked this question in Q&A
Discussion options

You must be logged in to vote

@ulaskalok "after a few queries" is certainly not normal, unless otherwise odd PG setup or overall heavy traffic. As suggested above, see how you're managing your connections. If needed, take a mem dump and inspect NpgsqlConnection instances.

If needed, make use of pg_stat_activity or ask your DBA to do so (https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW). From thereon, if needed, proceed to harness https://www.pgbouncer.org/ if you haven't and see it appropriate.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mysticmind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1493 on November 28, 2020 07:53.