java - Server Stop responding because of [Pool-Cleaner] :Tomcat Connection Pool but has failed to stop it. 这很可能造成内存泄漏

标签 java apache tomcat memory-leaks

问题:

org.apache.catalina.loader.WebappClassLoader - The web application [/…] appears to have started a thread named [[Pool-Cleaner]:Tomcat Connection Pool[...] but has failed to stop it. This is very likely to create a memory leak.

我在带有 jdk1.6.0_45 的 tomcat 服务器 (tomcat-7.0.23) 中部署了很少的应用程序,并且我在 apache 网络服务器上注册了服务器。启动服务器后,它工作正常,直到我突然分别收到所有应用程序的上述错误,然后我的 tomcat 为所有请求提供 404,但 tomcat 进程仍在运行,并且在浏览器中显示“未找到文件” .

我们使用具有以下配置的 Tomcat 连接池:

<Resource 
name="Project1" 
auth="Container" 
type="javax.sql.DataSource" 
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" 
url="DatabaseName" 
username="_username" 
password="_Password" 
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver" 
initialSize="40"
maxActive="300" 
maxIdle="250" 
minIdle="90"
maxWait="10000" 
minEvictableIdleTimeMillis="300000" 
timeBetweenEvictionRunsMillis="120000"
validationInterval="30000"
validationQuery="SELECT 1" 
testOnBorrow="true" 
logAbandoned="true"
removeAbandoned="true" 
removeAbandonedTimeout="60" 
abandonWhenPercentageFull="50"
jdbcInterceptors="ResetAbandonedTimer"
/>

并且配置在context.xml文件中。

最佳答案

内存泄漏警告是正确的。它指的是 Tomcat 7.0.x 中的一个已知问题,该问题已于几周前修复 (r1744702),并将包含在 7.0.70 之后的版本中。

关于java - Server Stop responding because of [Pool-Cleaner] :Tomcat Connection Pool but has failed to stop it. 这很可能造成内存泄漏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37721664/

相关文章:

java - 如何通过selenium从下拉列表中选择项目

django - 如何更正此错误 : "' Adminsite' object has no attribute 'root' "

java - Web服务客户端身份验证导致Tomcat异常

java - 如何克服 LWUIT 中的 RecordStoreFullException 错误?

java - 无法使用 XSLT 1.0 更新 XML 节点属性

sql-server - 启动 tomcat 服务器时出现 404,在 java 库路径上找不到 Tomcat Native Library

java - 从类路径加载资源时出现问题

java - Spring + gradle + tomcat 网络应用程序不工作

java - 在java方法中从数据库返回数据数组

python - Apache 停止 Imagemagick Convert