Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can we know when HikariCp has fully initialized its pool?

I want to start my service after HikariCP has added all connection to its pool. I am using Spring Boot.

I have a large Pool size, but while starting the application it takes a lot of time for HikariCP to add the connections and I get Connection timeouts.

like image 296
Abhishek Kumar Gupta Avatar asked Sep 19 '25 04:09

Abhishek Kumar Gupta


1 Answers

It is undocumented (and therefore officially unsupported), but you can set the Java system property com.zaxxer.hikari.blockUntilFilled=true.

like image 58
brettw Avatar answered Sep 21 '25 04:09

brettw