The purpose of this article is to provide assistance if you see memory leak messages when shutting down the Apache Tomcat™ web container running AM. You will see messages such as "WARNING: The web application [AM] appears to have started a thread named [ ] but has failed to stop it. This is very likely to create a memory leak." and "SEVERE: The web application [AM] created a ThreadLocal with key of type [ ] (value [ ]) and a value of type [ ] (value ) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak."