0

in tomcat's thread-pool,When a thread is used to store some values and finally the request is end and the thread return to thread-pool,does the thread-local values reset or remove?

1 Answers1

1

No, the values are not removed because you might want to use the same threadLocal value next time when your request get that thread from the pool.

If you are concerned about memory leaks then this might help you: https://wiki.apache.org/tomcat/MemoryLeakProtection

CodesInTheDark
  • 151
  • 1
  • 9