# Question about Cleaning Up Resources

**URL:** <https://community.solace.com/t/question-about-cleaning-up-resources/182>\
**Category:** Solace Event Broker\
**Created:** [February 13, 2020, 3:02am UTC](https://community.solace.com/t/question-about-cleaning-up-resources/182 "2020-02-13T03:02:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nosesh](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@nosesh](https://community.solace.com/u/nosesh)\
**Post date:** [February 13, 2020, 3:02am UTC](https://community.solace.com/t/question-about-cleaning-up-resources/182/1 "2020-02-13T03:02:20Z")

</div>

Hi.  
I have a question about cleaning up resources.  
I got a log message when shutting down the Tomcat.

org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.solacesystems.jcsmp.impl.JCSMPXMLMessageProducer$1] (value [com.solacesystems.jcsmp.impl.JCSMPXMLMessageProducer$1@2be8251c]) and a value of type [com.solacesystems.jcsmp.impl.SendMultipleEntry] (value [[Lcom.solacesystems.jcsmp.impl.SendMultipleEntry;@15dc67c9]) 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.

I’m using a java library, sol-jcsmp-10.6.4.jar.  
Do I have to add some codes besides closing producers and sessions?

Thanks.

---

<div class="post-metadata">

**Author:** ![nosesh](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@nosesh](https://community.solace.com/u/nosesh)\
**Post date:** [February 27, 2020, 2:15am UTC](https://community.solace.com/t/question-about-cleaning-up-resources/182/2 "2020-02-27T02:15:42Z")

</div>

I received a response that this warning can be ignored and the new bug fix will get rid of it.
