I am getting an error as below.
org.apache.commons.dbcp2.LifetimeExceededException: The lifetime of the connection [198,970] milliseconds exceeds the maximum permitted value of [60,000] milliseconds
What exactly I am doing ?
- I am trying to do a load run of 500 query updates and deletes, into MS SQL 2019. Out of this 500, we can consider 50 query as a part of a transaction boundary. Which means only 10 transaction sets are run per second.
Now I am getting a below error in Mule ESB 3.8.0 and I have a connection pool of 256 as min size. If any one can suggest, what could be the reason? Will it be because the query is spending more time in DB ? Will it be a DB query issue? As I am seeing some transaction set (50 queries) spending more than 3 minutes.
I am using Hibernate queries
I am not sure where to kick off the analysis and how to handle this. Can any one suggest?
More Error:
2023-04-13 11:04:41,052 [4616] [WARN] commons.dbcp2.BasicDataSource | An internal object pool swallowed an Exception.
org.apache.commons.dbcp2.LifetimeExceededException: The lifetime of the connection [198,970] milliseconds exceeds the maximum permitted value of [60,000] milliseconds
at org.apache.commons.dbcp2.PoolableConnectionFactory.validateLifetime(PoolableConnectionFactory.java:424) ~[commons-dbcp2-2.1.1.jar:2.1.1]
at org.apache.commons.dbcp2.PoolableConnectionFactory.passivateObject(PoolableConnectionFactory.java:364) ~[commons-dbcp2-2.1.1.jar:2.1.1]
at org.apache.commons.pool2.impl.GenericObjectPool.returnObject(GenericObjectPool.java:578) [commons-pool2-2.4.2.jar:2.4.2]
at org.apache.commons.dbcp2.PoolableConnection.close(PoolableConnection.java:206) [commons-dbcp2-2.1.1.jar:2.1.1]