Threads are going to be renewed over time to try and avoid a probable mem,内存溢出错误

zhangweitaylor 2017-04-10 07:04:15
测试运行的时候,程序运行正常,正式上线后,服务器运行一段时候后,报下面的内容溢出错误。必须重启APACHE才可以解决;而且这个问题越来越突出了,麻烦高手帮忙解决下。谢谢。
org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@4a6a0f1b]) and a value of type [com.microsoft.sqlserver.jdbc.SQLServerConnection] (value [ConnectionID:32]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
1)服务器内存资源监控了下。内存占用率并不高。
2)查了下网上资料,有的讲是数据库链接没有释放,但程序中数据库链接很多,很难逐一排查;
请问:
1)原因可能是什么?如何解决?
2)如果确实是链接没有释放,请问如何找到是哪个地方的数据库链接没有释放。
...全文
988 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhangweitaylor 2017-04-11
  • 打赏
  • 举报
回复
补充下完整的错误日志: 严重: The web application [] registered the JDBC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 四月 11, 2017 10:46:44 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation. 四月 11, 2017 10:46:44 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks 严重: The web application [] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@240221b3]) and a value of type [com.legeritsoft.framework.pub.util.UserState] (value [
zhangweitaylor 2017-04-11
  • 打赏
  • 举报
回复
帮忙顶下贴,顶者有分,谢谢。

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧