Comment 5 for bug 999114

Revision history for this message
selvakumar (selvakumarbecse) wrote :

Hi, I am using BoneCP with hibernate.

I monitoring BoneCP connection pool status using JConsole. I have observed there is a discrepancy between connection count in connection and MY-SQL server.

For instance,

Connection pool total connection : 60
Free connection : 60

but,

MY-SQL shows : 85 connections (all are created by same application).

Jar version : bonecp-0.7.1.RELEASE.jar

I am getting exception in application error console :

19-12-2014 11:51:01 ERROR [BoneCP-pool-watch-thread] [com.jolbox.bonecp.PoolWatchThread] - Error in trying to obtain a connection. Retrying in 7000ms
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections"

please advise me If I have apply this patch, my problem goes away.