Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hikari / Postgres: Too many clients #5

Open
aileenzeng opened this issue Dec 13, 2019 · 0 comments
Open

Hikari / Postgres: Too many clients #5

aileenzeng opened this issue Dec 13, 2019 · 0 comments
Assignees
Labels
high priority Urgent! Issues that block normal usage of Gallery / dev work / potential release.

Comments

@aileenzeng
Copy link
Member

aileenzeng commented Dec 13, 2019

Stack trace:

[warn] u.jul.logger - SQLException occurred while connecting to localhost:25432
org.postgresql.util.PSQLException: FATAL: sorry, too many clients already
        at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:475)
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:207)
        at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
        at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
        at org.postgresql.Driver.makeConnection(Driver.java:452)
        at org.postgresql.Driver.connect(Driver.java:254)
        at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:136)
        at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:369)
        at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:198)
        at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:467)
[error] o.p.Driver - Connection error: 
org.postgresql.util.PSQLException: FATAL: sorry, too many clients already
        at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:475)
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:207)
        at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
        at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
        at org.postgresql.Driver.makeConnection(Driver.java:452)
        at org.postgresql.Driver.connect(Driver.java:254)
        at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:136)
        at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:369)
        at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:198)
        at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:467)

Needs to be fixed before launch because otherwise we will be putting excessive load on the database server. This also is a semi-blocking issue for dev work because it requires restarting the dev environment (super annoying).

aileenzeng added a commit that referenced this issue Jun 10, 2020
@aileenzeng aileenzeng added the high priority Urgent! Issues that block normal usage of Gallery / dev work / potential release. label Jun 10, 2020
@aileenzeng aileenzeng self-assigned this Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority Urgent! Issues that block normal usage of Gallery / dev work / potential release.
Projects
None yet
Development

No branches or pull requests

1 participant