thread leak when undeploying the DAQExpert
Created by: andreh12
when undeploying the DAQExpert (deleting the .war file in the webapps directory) one finds messages like the following in catalina.out:
15-Jun-2018 14:33:53.754 WARNING [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [DAQExpert] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)
At some point we should try to find out how these threads are started and if we can stop them in a destroy()
method in any of the classes inheriting from HttpServlet
.