title: Tomcat ThreadWithAttributes causing Memory Leak
body: <p>I have out of memory issues with following environment:</p>
  
  <p>Tomcat 5.1.23
  Using XFire WebServices Framework
  JDK 1.5</p>
  
  <p>Used YourKit to profile it and found out multiple instances of class org.apache.tomcat.util.threads.ThreadWithAttributes has huge ArrayList object (Stack Local) with java.lang.Object array containing duplicate string.</p>
  
  <p>Following are some screenshots. </p>
  
  <p>Any idea why ThreadWithAttributes hold references to such ArrayList objects and those strings seem to be input to software deployed in tomcat?</p>
  
  <p>Does it have to do something with known memory leak issue with tomcat?</p>
  
  <p><a href="http://gallery.me.com/memon.adnan#100026/Screen-20shot-202009-09-11-20at-208-55-27-20AM&amp;bgcolor=black" rel="nofollow noreferrer">Screenshot 1</a></p>
  
  <p><a href="http://gallery.me.com/memon.adnan#100026/Screen-20shot-202009-09-11-20at-203-43-10-20PM&amp;bgcolor=black" rel="nofollow noreferrer">Screenshot 2</a> </p>