gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 22:29:56 27 4
gpt4 key购买 nike

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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com