In web applications, you should explicitly turn off the result set, declaration, and connection (Esultset, Statement, Connection). Instead, these resources can be reused, and the linking pool is disclosed, which ultimately leads to the WEB application. In Tomcat4.1, there is a solution. It is to prevent the connection pool from leakage by setting Jakarta-Commons DBCP. The configuration is in the elements tag of the ResourceParams of Server.xml's Resource Elements, setting the RemoveabandONED value True. For example, the following settings: