简体   繁体   中英

Hikari pool connection timeout issue for Java Vertx application

We are using an application on Java Vertx. We are using HikariCP for connection pooling with JDBC for Oracle database. This application works fine with certain number of TPS. But it started giving error if the concurrent load on application is high.

The error is coming like this.

Connection silently closed by HikariCP. Connection not available...

The other observation is this happens only for few seconds and then on next few seconds application started working as usual.

We are using connection pool with size of 30 for this application, should we increase the pool? Please note, we have not noticed any connection leak with this application.

In this case, it turns out that connectionTimeout property was causing issues. So we have added oracle.jdbc.ReadTimeout property into JVM arguments and it helped.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM