Hi Roel,
I'm able to reproduce this issue in development and QA environment.
I have set maxActive count to minimum value as "1" and tried to extract the reports from my application. As expected, i have received "Connection pool exhausted exception" for the second request to report extraction. This is what I had suspected very most. I believe, i'm closing the connections as soon as I've done with the reports execution, hence I thought that connection leak will not be a primary reason. But as a safer side, i have enabled the
logAmandoned property of DBCP and i'm monitoring this for some days.
Moving ahead to provide a solution to this issue, i'm planning to extend the maxActive count to 100 from 50 (DOUBLING TO THAT WE HAVE EARLIER) as I think as far as the load on the application in peak hours is considered, (600 branches [600*3=1800 end users] are using the application to perform Banking Card related operations/reports, Its assumed to be very high load on the application). And as per my today's experience, where maxActive count is defined as 1, I logged into my application with two different users, tried extracting same report from two different browser instances, using these two user logins, I found that very first report request has succeed while for the second request, i received the connection pool exhausted because the maxAcive count is already reached.
Please suggest if you thinks my experience and observations are good enough to extend the maxActive count?
Let's see if i get any connection leak traces in
tomcat logs.
Important sites that I have gone through to analyse this error:
http://grokbase.com/t/tomcat/users/10b3140dn2/connection-leak
http://grokbase.com/t/tomcat/users/051r7fmqs2/connection-pool-leaking-how-to-detect-it
Thanks Roel for your timely assistance.