New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Active connections issues with JDK8 vs JDK6 #599
Comments
It is unlikely to be caused by the abortActivrConnection() code, as that is only called during shutdown. I will investigate further. |
@brettwooldridge thanks, here is some additional information that may help : JDBC driver : 9.2-1004-jdbc4 DEBUG [HikariConfig] dataSource - configuration:
DEBUG [HikariConfig] allowPoolSuspension.............false
DEBUG [HikariConfig] autoCommit......................true
DEBUG [HikariConfig] catalog.........................null
DEBUG [HikariConfig] connectionInitSql...............null
DEBUG [HikariConfig] connectionTestQuery.............null
DEBUG [HikariConfig] connectionTimeout...............30000
DEBUG [HikariConfig] dataSource......................null
DEBUG [HikariConfig] dataSourceClassName.............null
DEBUG [HikariConfig] dataSourceJNDI..................null
DEBUG [HikariConfig] dataSourceProperties............{password=<masked>}
DEBUG [HikariConfig] driverClassName................."org.postgresql.Driver"
DEBUG [HikariConfig] healthCheckProperties...........{}
DEBUG [HikariConfig] healthCheckRegistry.............null
DEBUG [HikariConfig] idleTimeout.....................600000
DEBUG [HikariConfig] initializationFailFast..........true
DEBUG [HikariConfig] isolateInternalQueries..........false
DEBUG [HikariConfig] jdbc4ConnectionTest.............false
DEBUG [HikariConfig] jdbcUrl........................."XXXXXXXXXXXXXXXXXXXXXX"
DEBUG [HikariConfig] leakDetectionThreshold..........0
DEBUG [HikariConfig] maxLifetime.....................1800000
DEBUG [HikariConfig] maximumPoolSize.................10
DEBUG [HikariConfig] metricRegistry..................null
DEBUG [HikariConfig] metricsTrackerFactory...........null
DEBUG [HikariConfig] minimumIdle.....................10
DEBUG [HikariConfig] password........................<masked>
DEBUG [HikariConfig] poolName........................"dataSource"
DEBUG [HikariConfig] readOnly........................false
DEBUG [HikariConfig] registerMbeans..................true
DEBUG [HikariConfig] scheduledExecutorService........null
DEBUG [HikariConfig] threadFactory...................null
DEBUG [HikariConfig] transactionIsolation............null
DEBUG [HikariConfig] username........................"XXXXXXXXXXXXXXXXXXXXXX"
DEBUG [HikariConfig] validationTimeout...............5000
`` |
Can you enable leak detection via the leakDetectionThreshold? I'm curious if anything shows up. |
Three exceptions are raised. Each time, the stacktrace is as follows :
|
I use Jadira 3.2.0.GA, I'll try to upgrade it to the latest compatible version. |
After upgrading to 4.0.0.GA, there are no more leaks .... So the problem is solved. I've noticed you did report this problem in the release note of Jadira. Thanks for your help ;) |
I have a webapp with the following configuration :
HikariCP-java6 2.3.13
Hibernate 4.3.5.Final
Tomcat7 (tested on Jetty as well)
The webapp is compiled with JDK6.
When I run the webapp on a Tomcat with a JRE6, everything runs fine during the startup, meaning every now and then I've got the following messages in the log (with DEBUG enabled) :
Now, using the exact same webapp, but using JRE8, I've got the following log :
And the IN_USE connections are never released afterwards ....
I guess it must be related to the following comment in HikariPool.java
Is there any way around this ?
Thanks.
The text was updated successfully, but these errors were encountered: