tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Need advice to notify StandardExecutor when a webapp is stopped
Date Thu, 29 Apr 2010 21:57:36 GMT
> From: Caldarale, Charles R
> Subject: RE: Need advice to notify StandardExecutor when a webapp is
> stopped
> 
> This is an area where some byte code modification might be appropriate
> in a container environment, so that the ThreadLocal behavior could be
> modified to be "ContextLocal" instead.

Thinking about this some more, byte code modification of the ThreadLocal class would not be
needed.  When a thread returns to the pool, any ThreadLocal objects it has could be moved
to a context-specific table, using an MRU stack.  When a thread is taken out of the pool to
process a request for a context, it could then move the most recent set of ThreadLocal objects
to itself.  The context-specific table would be discarded whenever the webapp is stopped.
 This would allow performance acceleration for each webapp, and avoid pollution of the pool.

 - Chuck


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message