title: Threadlocal memory leak in Threadpool
body: <p>I am getting threadlocal memory leak errors in Tomcat and I am using ThreadPool, but have no implementation of ThreadLocal in my webapp.</p>
  
  <blockquote>
    <p>SEVERE: The web application [/myWebApp] created a ThreadLocal with key of type [org.a
    pache.http.impl.cookie.DateUtils$DateFormatHolder$1] (value [org.apache.http.imp
    l.cookie.DateUtils$DateFormatHolder$1@4c2849]) and a value of type [java.lang.re
    f.SoftReference] (value [java.lang.ref.SoftReference@1e67280]) but failed to rem
    ove it when the web application was stopped. Threads are going to be renewed ove
    r time to try and avoid a probable memory leak.</p>
  </blockquote>
  
  <p>What I dont understand is why i am getting threadlocal error although i have not implemented it? I want to get rid of these messages so I searched the web, and in <a href="https://stackoverflow.com/questions/3869026/how-to-clean-up-threadlocals">here</a> it is written that in order to clean the threadlocal i need to use:</p>
  
  <pre><code>ThreadLocal.remove()
  </code></pre>
  
  <p>but I have no implementation of ThreadLocal.. I'll be appreciated if someone show me a way.</p>