最近在维护的一个比较旧的项目,发现总是隔一段时间JDBC就报错:
Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object
实在看不出来是在哪发生连接池泄露了,先调参数吧。把log打出来
找到了个博客:http://elf8848.iteye.com/blog/1931778
官方文档:http://commons.apache.org/proper/commons-dbcp/configuration.html
未完待续。。。