[Hikari Housekeeping Timer (pool HikariPool-4)] DEBUG HikariPool - Before cleanup pool stats HikariPool-4 (total=7, inUse=7, avail=0, waiting=0)
[Hikari Housekeeping Timer (pool HikariPool-4)] DEBUG HikariPool - After cleanup pool stats HikariPool-4 (total=7, inUse=7, avail=0, waiting=0)
[HikariCP connection filler (pool HikariPool-4)] DEBUG HikariPool - After fill pool stats HikariPool-4 (total=10, inUse=7, avail=3, waiting=0)
And occassionally:
[HikariCP connection closer (pool HikariPool-4)] DEBUG com.zaxxer.hikari.pool.PoolUtilities - Closing connection com.mysql.jdbc.optional.ConnectionImpl@53d16850
Try to see how these numbers compare to the database reported connections.
I'm not sure if it is useful or not, but the PostgreSQL driver also support a loglevel property that takes an int value (see https://jdbc.postgresql.org/documentation/80/connect.html).
You can also get PostgreSQL to show the current sessions:
SELECT * FROM pg_stat_activity;
Let us know what you find.
...