Hikaricp: [question] - timeout error trying get connection but poll has a lot free connections to open(maximumPoolSize)

Created on 9 Dec 2016  ·  2Comments  ·  Source: brettwooldridge/HikariCP

I verified on my application some Timeout Exception waiting for pool connection but checking my metrics(iddle, max, active), the pool has a lot free connections that pool could open, but fail throwing this exception.

maximumPoolSize value: 400

image

I didn't understand this behavior and I would like some protip / help =)

HikariCP-java6: 2.3.13

question

Most helpful comment

@rgarbin Are you stuck on Java 6? The Java 7 and Java 8 distributions are significantly ahead of Java 6, with many (many) issues addressed.

All 2 comments

@rgarbin Are you stuck on Java 6? The Java 7 and Java 8 distributions are significantly ahead of Java 6, with many (many) issues addressed.

I adjusted some configs and timeout exception stop.

  • connectionTimeout: from 10s to default value, 30seconds
  • maxLifetime: from 15m to default value, 30minutes

I just read docs and all resolved \o/
https://github.com/brettwooldridge/HikariCP/wiki/Configuration

We are working to upgrade all applications to Java 8!

Was this page helpful?
0 / 5 - 0 ratings