I've app, which use the database in multiple concurrent sessions (over 1000). In Postgres the max connections available is set to 100 by default and i haven't change this.
Hibernate has max connection pool size is 20, but the app seems to be ignored this and throws "Too many connections" error.
So the problem is how to handle over 1000 sessions when the only available is 100? Is there queue or smth like this is possible?