Created attachment 39435 [details] Logs from batch job As per the documentation on https://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html. We have implemented Tomcat Connection pool in our project. It is a Java batch job and we are using below properties. maxTotal="100" maxIdle="20" removeAbandoned="true" removeAbandonedTimeout="1800" Our batch job abruptly ends with below logs: exitDescription=org.springframework.transaction.TransactionSystemException: Could not roll back JPA transaction; nested exception is org.hibernate.TransactionException: Unable to rollback against JDBC Connection\n\tat org.springframework.orm.jpa.JpaTransactionManager.doRollback I need to understand what should be the combination of these params? removeAbandoned as per documentation is for longest running query but this fails even the queries run less than 5 mins. Is there a different param like maxAge we need to use? Also attcahed complete logs too. Pls help as this is impacting our batch jobs. Thanks Angadpaul