tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Brown" <gm...@blueyonder.co.uk>
Subject RE: Using SingleThreadModel under tomcat
Date Thu, 23 Jan 2003 12:37:19 GMT
2. Tomcat maintains a pool of up to 20 (by default) instances of each
servlet that implements the SingleThreadModel.

If no instance is available when a new request comes in, the request waits
on an instance freeing up, so will be serviced when the queue empties, or
when the request gets lucky, and is randomly chosen by the scheduler as the
one to be notified.

> -----Original Message-----
> From: Felipe Schnack [mailto:felipes@ritterdosreis.br]
> Sent: 23 January 2003 11:48
> To: dan@27d.org; Tomcat Users List
> Subject: RE: Using SingleThreadModel under tomcat
>
>
>   And tomcat implements option 1 or 2?
>
> On Thu, 2003-01-23 at 09:36, Daniel Brown wrote:

> > If, however, the servlet implements SingleThreadModel, then the
> container
> > has two choices:
> >
> > 1. serialise all requests through the single instance
> > 2. create a pool of servlet instances, and share out requests
> amongst the
> > pool, as each pool member becomes free


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


Mime
View raw message