Grokking Spring Boot
Vote

0% completed

​

Sizing Connection Pools

java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 273ms (total=2, active=2, idle=0, waiting=0)

We produced this error on purpose. The booking service ran with a pool of only 2 database connections and a connection timeout of 250 ms, the smallest value HikariCP accepts. Two callers took both connections and kept them, and a third caller asked for one. It waited, gave up after 273 ms, and received this exception instead of a connection.

The message reads like a database failure, but the database was healthy

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content