通常情况下,线程池会运行到程序结束,但是在线程池完成时这个程序才会结束,所以这个检查非常必要。
Typically, the pool would just run until the program ends, but this program ends when the pool is done, so the check is necessary.
在那种情况下,因为池管理器预先在启动时创建连接对象,所以,J2EE组件可以使用连接对象,而不会导致数据库资源管理器上的系统开销。
In that situation, a J2EE component can use connection objects without causing overheads on the database resource manager, since a pool manager creates the connection objects up front, at startup.
只有在CPU没有完全利用的情况下,才考虑增加池的大小。
Consider increasing the size of the pool only if the CPU is not fully utilized.
应用推荐