thread « Filter « JSP-Servlet Q&A





1. Accessing Tomcat Internals from Servlet (or Filter)    stackoverflow.com

I would like to get access to the Tomcat internal data from a servlet (or filter). In particular, I would like to read information about busy threads, from thread pool manager. ...

2. Servlets, filters and threads in Tomcat    stackoverflow.com


In the Tomcat container, do all the filters associated to a servlet and the servlet itself use the same thread? i.e, will doFilter() be run in the same thread as a ...

3. Is it worth cleaning ThreadLocals in Filter to solve thread pool-related issues?    stackoverflow.com

In short - tomcat uses a thread pool, so threads are reused. Some libraries use ThreadLocal variables, but don't clean them up (using .remove()), so in fact they return "dirty" threads ...