Hi! I'm working on migrating my client's connection pools from BoneCP to Hikari. BoneCP is locking up our applications every 10 days or so, apparently due to its inability to close stale, unused connections that weren't properly closed. I'm hoping Hikari will give me a stack trace when it closes the idle connections that will point me to the troublesome application code.
The connection pools are set up as server resources in Tomcat's server.xml, and linked in the applications through ResourceLinks.
The client's Tomcat uses the default Tomcat logging setup (version 6.0.41), using log4j and logging.properties. The Tomcat logging is all default settings, though I've changed all log levels in logging.properties to FINEST. I've migrated the connection pools to Hikari in the server.xml, and I've dropped the slf4j and slf4j-log4j jars into the Tomcat lib directory. I've also added the "-Dorg.slf4j.simpleLogger.defaultLogLevel=debug" switch to the Tomcat startup.
However, I am not seeing anything at all from Hikari in any of the Tomcat logs or the application logs, and am not seeing any live stats in JConsole. I do see that the datasources are loaded in JConsole, and I know that they are working, but I need to see live information from Hikari about connection stats and need to see what happens when Hidari closes an idle connection.
Can you help me figure out how to see information being logged by Hikari? Thanks!
-Michael