> From: Peter Crowther [mailto:peter.crowt...@melandra.com]
> Subject: RE: Performance with many small requests
> 
> They look like spares in the pool, but my knowledge of Tomcat's
> internals is limited.

Yes, they are just waiting for requests to show up.

> Only one thread can get into the method

Strictly speaking, that's one thread per *servlet* object; if using the 
SingleThreadModel (let's hope not), the container is allowed to create multiple 
instances.

> They're not further places for contention to occur.

Depending on what else uses the criticalProcess object, that may or may not be 
true.

Regardless, synchronizing on the method is very likely a complete waste of time.

 - 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