为什么连接数还是不断增加?
我的数据库连接池中已经有了:
public void destory() throws Exception{
try {
if(rs != null)
rs.close();
if(stmt != null)
stmt.close();
if(conn != null)
conn.close();
}catch(Exception e){
System.err.println("Close connection error:"+e);
}
}
在程序中调用了,为什么连接数还是在增加?