https://bz.apache.org/bugzilla/show_bug.cgi?id=70370
Remy Maucherat <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO --- Comment #5 from Remy Maucherat <[email protected]> --- About the JMX possible issue, please use a separate BZ if needed (also please clarify a little). The MBeans have had some adjustments due to fundamental issues in the previous designs (name conflicts in particular). The best solution is to let the pool register itself instead of creating the MBean in your code (use DataSource.preRegister(MBeanServer server, ObjectName name)). Otherwise, it won't create MBeans for connections that were created before you registered the pool yourself. You can also simply call registerConnectionMBeans on the ConnectionPool. About the statement cache, a cached statement is valid only for the duration of its associated connection. So the pool has to retire cached statements when closing a connection. There have been subsequent fixes in that area, since there are some thread safety scenarios that your configuration could run into that have been found and fixed. So I would recommend investigating like this: - Drop the StatementCache interceptor to verify it fixes the issue. If so, this confirms the problem is there. - Move to a newer jdbc-pool build post 11.0.20 from https://github.com/apache/tomcat/tree/main/modules/jdbc-pool (it is very easy to build). It will very likely fix the issue. - Alternately, you can increase validationInterval to above 0 to makes things easier with the thread safety issue (reconnectedCount could show that a reconnection occurs around that time). -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
