Why do some webservers complain about memory leaks they create?
The title might be a bit strong, but let me explain how I understand what happens. I guess this happened with Tomcat (and the message cited comes from Tomcat), but I'm not sure anymore. TL;DR At the bottom there's a summary why I'm claiming that it is the web servers' fault. I might be wrong (but without the possibility of being wrong there would be no reason to ask): An application uses a library the library uses a ThreadLocal the ThreadLocal refers to an object from the library each object refers to its ClassLoader The webserver pools its worker threads for efficiency lends an arbitrary