java - 由于内存泄漏导致tomcat崩溃

标签 java tomcat memory-leaks hbase

tomcat 由于内存泄漏而崩溃。这是 catalina.out。根据下面的日志,任何线程引起的想法和可能的修复

SEVERE: The web application [/testapp] appears to have started a thread named [hbase-tablepool-168-thread-1] but has failed to stop it. This is very likely to create a memory leak.

Jul 07, 2014 2:51:38 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/testapp] appears to have started a thread named [hbase-tablepool-169-thread-1] but has failed to stop it. This is very likely to create a memory leak.

Jul 07, 2014 2:51:38 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/testapp] appears to have started a thread named [IPC Client (47) connection to ip-XX-XX-XX-XX.ec2.internal/XX-XX-XX-XX:60020 from tomcat] but has failed to stop it. This is very likely to create a memory leak.

Jul 07, 2014 2:51:38 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/testapp] appears to have started a thread named [IPC Client (47) connection to ip-XX-XX-XX-XX.ec2.internal/XX-XX-XX-XX:60020 from tomcat] but has failed to stop it. This is very likely to create a memory leak.

Jul 07, 2014 2:51:38 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/testapp] appears to have started a thread named [IPC Client (47) connection to ip-XX-XX-XX-XX.ec2.internal/XX-XX-XX-XX:60020 from tomcat] but has failed to stop it. This is very likely to create a memory leak.

Jul 07, 2014 2:51:38 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/testapp] appears to have started a thread named [IPC Client (47) connection to ip-XX-XX-XX-XX.ec2.internal/XX-XX-XX-XX:60020 from tomcat] but has failed to stop it. This is very likely to create a memory leak.

Jul 07, 2014 2:51:38 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/testapp] appears to have started a thread named [hbase-tablepool-170-thread-1] but has failed to stop it. This is very likely to create a memory leak.

Jul 07, 2014 2:51:38 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/testapp] created a ThreadLocal with key of type [org.apache.hadoop.io.Text$1] (value [org.apache.hadoop.io.Text$1@1dba6717]) and a value of type [sun.nio.cs.UTF_8.Encoder] (value [sun.nio.cs.UTF_8$Encoder@38c62640]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.

Jul 07, 2014 2:51:38 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks

SEVERE: The web application [/testapp] created a ThreadLocal with key of type [org.apache.hadoop.io.Text$1] (value [org.apache.hadoop.io.Text$1@1dba6717]) and a value of type [sun.nio.cs.UTF_8.Encoder] (value [sun.nio.cs.UTF_8$Encoder@58f950de]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.

Jul 07, 2014 2:51:39 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080

最佳答案

HTablePool 似乎已被弃用,但创建它的人(希望是 Servlet 或 Filter)应该在 destroy() 方法中调用 close()

关于java - 由于内存泄漏导致tomcat崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24620962/

相关文章:

java - Play框架入门

祖 parent 上的 JavaFX addEventListener 内存泄漏

java - Java中包和目录的区别

java - jackrabbit:使用 NodeTypeManager 时出现 UnsupportedRepositoryOperationException

java - Tomcat 主页显示错误

java - 无法在 Eclipse 中设置 Tomcat 6 - "Could not load the Tomcat server configuration"错误

java - 调试tomcat崩溃

c# - WPF WF4.5 Rehosted Designer 内存问题

java - 删除对对象的引用是否足以避免内存泄漏?

java - 搜索对象问题