Tomcat显示此错误“这很可能造成内存泄漏".如何解决这个问题? [英] Tomcat showing this error "This is very likely to create a memory leak". How to resolve this issue?

查看:1085
本文介绍了Tomcat显示此错误“这很可能造成内存泄漏".如何解决这个问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Apache Cocoon中创建了一个Web应用程序.该网站正常运行,但是每3-4天就会停止响应.直到并且除非我们重新启动tomcat服务,它才会运行.在catalina.2011-05-09.log文件中,它显示以下错误:-

I have created a web application in Apache Cocoon.This website is running properly but after every 3-4 days, it stops responding. It doesn't run until and unless, we restart the tomcat service. In the catalina.2011-05-09.log file, it shows following error:-

"2011年5月9日上午3:17:34 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重:Web应用程序[/webresources]仍在处理尚未完成的请求.这很可能造成内存泄漏.您可以使用标准Context实现的unloadDelay属性来控制请求完成的时间."

"May 9, 2011 3:17:34 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/webresources] 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."

我无法理解此问题的原因.有人可以建议我如何解决此问题吗?

I am not been able to understand the cause of this problem. Can someone suggest me how to resolve this issue?

推荐答案

您正在使用一个正在启动一个或多个线程并且未正确关闭它们或释放该线程捕获的其他资源的库.这通常发生在诸如Apache HTTP组件(我在Http组件中遇到此错误)之类的东西以及任何在内部使用单独线程的事物中.您在Cocoon应用程序中使用哪些库?

You are using a library that is starting one or more threads and is not properly shutting them down or releasing other resources captured by the thread. This often happens with things like Apache HTTP components (I get this error with Http Components) and anything that uses separate threads internally. What libraries are you using in your Cocoon application?

这篇关于Tomcat显示此错误“这很可能造成内存泄漏".如何解决这个问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆