Narendra Sarkar wrote: > Hi, > We have a multi threaded environment. We have noticed that thread blocks for > 10 to 20 minutes due DBCP getConnection method call. Then, we investigated > the source code of DBCP(commons-dbcp-1.2.1-PII.jar) and noticed that > createConnection method is synchronized. This problem occur more frequently > when we have lower value of MaxIdleConnection parameter. After increasing > the value of MaxIdleConnection parameter, frequency of blocking get reduced. > We then replaced DBCP connection pooling with Oracle Connection pooling > (ojdbc14.jar) and never encountered blocking issue. > > I think the issue is with that createConnection method of DBCP > synchronization. We have taken Thread dump to do above analysis.
Yep, known issues with commons-pool. Should be fixed in 1.5.1. Trunk has been updated. Proposed for 6.0.x and 5.5.x. Alternatively, there is the new JDBC pool module. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org