请问CachedRowSet是断接的,但连接池还是很快被耗尽,为什么?

1 使用tomcat554的连接池,最大连接数设为3(作测试)。
2 用tomcat绑定数据源。
3 用html+servlet访问数据源。
其中servlet主要部分如下:
PrintWriter out=response.getWriter();
try{
CachedRowSet crs=new CachedRowSetImpl();
crs.setDataSourceName("java:comp/env/jdbc/TestMYSQL");
crs.setCommand(" select * from table1");
crs.execute();
out.println("<html>");
out.println("<body>");
while(crs.next()) {...}
out.println("</body>");
out.println("</html>");
out.close();
}
测试结果,开三个网页或刷屏3次就出现:
Cannot get a connection, pool exhausted

CachedRowSet不是说取得结果就断开吗?是不是是我理解错了。请指点,谢谢

连接池个数开多点试看