Mohan Krishnamurthy wrote:
>
> HI All,
> Need some information about various possibilties of designing servlets ON
> WEBSPHERE
> to improve performance.
> It would be of great help if I could get answers to these questions ....
> 1) Does making a servlet a single thread model improve performance ? Books
> on servlet indicate
> that when you make a servlet SingleThreadedModel, instead of a single
> instance, a pool of
> instances are maintained. So I thought may be some kind of load
> balancing might be done to
> serve the requests.
> Ans:
>
The SingleThreadedModel is likely to perform much worse than non-STM.
You use STM if your servlet is not thread safe (e.g. stores a jdbc
Connection object as an instance variable) and therefore you need an
instance of the object for each concurrent request. With non-STM,
concurrency can be handled with multiple threads working with the same
object.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html