Tomcat shows this error "This will probably lead to a memory leak." How to solve this problem?

I created a web application in Apache Cocoon. This website works correctly, but every 3-4 days it stops responding. It does not start until we restart the tomcat service. The following error is displayed in the catalina file 2011-05-09.log: -

"May 9, 2011 3:17:34 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: the web application [/ webresources] is still processing a request that is not finished yet. This will probably lead to a memory leak. You "You can control the time allowed to complete requests using the unloadDelay attribute of the standard context implementation."

I could not understand the cause of this problem. Can someone suggest me how to solve this problem?

+3
source share
2 answers

You are using a library that starts one or more threads and incorrectly closes them or frees up other resources captured by the thread. This often happens with things like Apache HTTP components (I get this error with Http components) and everything that uses separate streams inside. What libraries do you use in your Cocoon app?

+1
source

This tells you about the problem:

 [...] is still processing a request that has yet to finish

You need to find out what this request is. One easy way is to install something like PsiProbe .

, Tomcat . , .

0

All Articles