Hi,
We have threads that are not stopping with Tomcat requiring a hard stop of the container. Can you please help us resolve this issue?
Thanks,
Clinton / Fazle
What is the impact of the issue ?
• When we perform web application reloads on our servers we observe memory leaks. As the memory allocated to the previous web application instance is not garbage collected due to these threads being alive.
• We are also suspecting the server taking a long time to stop, because of this issue.
Warning message from our tomcat server log –
11-Feb-2020 08:46:54.741 WARNING [http-nio-8080-exec-9] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads
The web application [CAPReportServer##000.00] appears to have started a thread named [ODB- WeakRefPurger] but has failed to stop it. This is very likely to create a memory leak.
Stack trace of the non-terminating objectdb thread –
"ODB-WeakRefPurger" - Thread t@35
java.lang.Thread.State: WAITING
at java.lang.Object.wait(Native Method)
- waiting on <68c32d6f> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:165)
at com.objectdb.o.RTM$1.run(RTM.java:157)