Caldarale, Charles R wrote:
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.
Thanks for confirming that.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org