I track the SQL database for connections every 5 minutes. Within a few days it will fend off about 5 connections (my downtime), and then I will be 50. Obviously, this is a recursive problem, because I do not understand why I would jump from 5 to 50 for 5 minutes with zero traffic.
I use Hibernate 4 and Tomcat, and I know about a problem in Hibernate that was fixed in 4.3.2, but I'm on 4.3.5
Read more: An empty pool event occurs every day at exactly 7:13:20 PM ... It sounds too automatic. I use Quartz and it works every 1 minute, but I donβt see how they are connected.
My properties:
jmxEnabled = true initialSize = 5 maxActive = 50 minIdle = 5 maxIdle = 25 maxWait = 10000 maxAge = 10 * 60000 timeBetweenEvictionRunsMillis = 5000 minEvictableIdleTimeMillis = 60000 validationQuery = "SELECT 1" validationQueryTimeout = 3 validationInterval = 15000 testOnBorrow = true testWhileIdle = true testOnReturn = false jdbcInterceptors = "ConnectionState" defaultTransactionIsolation = java.sql.Connection.TRANSACTION_READ_COMMITTED
Environment:
- Tomcat 7.0.59
- Update java 1.7.0 76
- SQL Server 2012
Additional Information: I reduced the frequency of the quartz every 5 minutes. The event did occur when I loaded the page / view into the application. It was at about 7:14 pm. I'm on the verge of dropping to sleep 3.
Update Today I reloaded the application in Tomcat Manager at 18:50, but the event did occur. Stream dump
tomcat sql-server-2012 hibernate connection-pooling transactions
John giotta
source share