log Connection pool statistics (PoolState)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

log Connection pool statistics (PoolState)


is there a way to periodically log connection pool statistics?

The PoolState class maintains nice statistics on the pool, and even has a toString() that nicely prints the statistics.

But I don't see any way to make use of those, neither to have MyBatis log them periodically, nor to get the stats from the application level and log them.

Those stats would be helpful to tune the connection pool.



You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.