Drop idle connection in Quarkus

431 Views Asked by At

I want a database connection that has gone idle to be dropped once its maxLifetime has been reached.

How can we do this in quarkus? Is this achieved with these 2 properties?

quarkus.datasource.jdbc.idle-removal-interval quarkus.datasource.jdbc.max-lifetime

How can I check that idle connections are actually being dropped? Any logs I can activate?

0

There are 0 best solutions below