Migrating commons dbcp 1.4 to 2.1

I was recently working on an application that was using version 1.1 dbcp. On first trial we upgraded to 1.4 and there were no change needed at all. It worked out of box. And after sometime we upgraded to commons-dbcp 2.1. For this we needed some changes. Configuration changes     Other changes When I did … Read more

Commons dbcp creating connection issues, CLOSE_WAIT and java.lang.Thread.State: WAITING

Recently I was working on a application that was using dbcp  version 1.4 for connection pools and was running in tomcat 7. And after sometime of working with the application we found out that lots of connections related to the tomcat were ending up in CLOSE_WAIT.Here is a sample of the connections with tomcat pid as 1234: … Read more