tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David kerber <dcker...@verizon.net>
Subject Re: Performance with many small requests
Date Fri, 08 May 2009 16:27:21 GMT
Caldarale, Charles R wrote:
>> From: Peter Crowther [mailto:Peter.Crowther@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.
>   
Thanks for confirming that.

Dave



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


Mime
View raw message