You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ne...@bt.com on 2005/05/27 13:23:30 UTC

RE: Consecutive threads

Kenneth Jensen:
> On 4/21/05, neil.shadrach@bt.com <ne...@bt.com> wrote:
>> If I run a long query, followed by a series of short queries ( 
>> different browsers/pcs ) then the latter all wait for the long query 
>> to return rather than completing first as I expected.
> A quick guess would be that your first query starts a transaction and
locks some DB-resources, 
> and the following queries have to wait for them to become unlocked.

I'm using log4j for debugging and this shows that only 2 threads are
active at any given time. 
I ran about 12 requests that each took a minute or so to run. Only 4
different threads were used to run them and only 2 were running at a
time. The application logs on starting and stopping before accessing any
resources such as a database. Two threads did most of the requests
consecutively between them.

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