刷新几次后:
10 (active), 0 (available), 10 (max)日志记录同时显示:
2007-08-22 16:04:50 [INFO] [org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:164)] - 000024 -000006 (10/10/00) - Couldn't get connection because we are at maximum connection count and there are none available
这条是自己程序的异常处理显示:
2007-08-22 16:04:51 [FATAL] [chris.web.beans.DataBase.getConn(DataBase.java:18)] - Couldn't get connection because we are at maximum connection count (10/10) and there are none available过一会,日志记录显示类似如下信息:
2007-08-22 16:05:08 [WARN] [org.logicalcobwebs.proxool.HouseKeeper.sweep(HouseKeeper.java:149)] - #0015 was active for 85047 milliseconds and has been removed automaticaly. The Thread responsible was named 'http-8080-Processor21', and the last SQL it performed is '一些SQL命令'.
10 (active), 0 (available), 10 (max)日志记录同时显示:
2007-08-22 16:04:50 [INFO] [org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:164)] - 000024 -000006 (10/10/00) - Couldn't get connection because we are at maximum connection count and there are none available
这条是自己程序的异常处理显示:
2007-08-22 16:04:51 [FATAL] [chris.web.beans.DataBase.getConn(DataBase.java:18)] - Couldn't get connection because we are at maximum connection count (10/10) and there are none available过一会,日志记录显示类似如下信息:
2007-08-22 16:05:08 [WARN] [org.logicalcobwebs.proxool.HouseKeeper.sweep(HouseKeeper.java:149)] - #0015 was active for 85047 milliseconds and has been removed automaticaly. The Thread responsible was named 'http-8080-Processor21', and the last SQL it performed is '一些SQL命令'.
解决方案 »
- 页面停留3分钟,点击就没反应了。需要刷新页面
- 校验规则文件XML验证文本框为什么填对了也提示错误
- mysql 的数据库表生成hibernate的问题。。。。。。急
- java表达式语言实现这个功能
- 关于ibatis 的一个问题
- eclipse启动的时时候报错
- Struts中使用javascript时出现的问题
- A a = new A()和A a = new B()生成的引用对象有什么区别??
- eclipse+lomdoz+tomcat的问题 在线等
- 那里有J2EE入门的书籍下?
- 急急急!!!!!在线等
- 我想在本页面提交action之后,根据返回结果,决定在框架集里是只刷新本页,还是还要同时刷新其他页面?
可能的原因是,一个Connection 对象,在调用完后,没有执行close(),又被new 了一个.
虽然是一个Connection对象,但却被new了两遍,但你只关闭了一次.抽像一点,你的代码应该是:
Connection conn = DriverManager.getConnection("proxool.link");
......
conn = DriverManager.getConnection("proxool.link");
.....
conn.close();这时候,产生了两个连接,但你却只关闭了一个!