> From: Leo Donahue [mailto:donahu...@gmail.com] 
> Subject: Re: heap thrashing

> "re-using objects" - do you mean declaring static variables or using thread
> locals?  Or something else?

In an environment that uses thread pooling (e.g., Tomcat), any use of thread 
locals has to be done very, very carefully, or they will cause memory leaks and 
possible crosstalk between requests.  Statics have the same issues, even 
without thread pooling - it's very easy to accidentally place a 
request-specific item into a static and erroneously share it among requests.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to