Re: Threads Question in Tomcat

2002-08-28 Thread Craig R. McClanahan
On Wed, 28 Aug 2002, Nikola Milutinovic wrote: > > Is there some kind of "retirement" of threads? You know, to prevent memory > leaks, so that each thread has a maximum number of times it can be reused. > There is no such mechanism currently -- but I don't see how putting this kind of logic in

Re: Threads Question in Tomcat

2002-08-28 Thread Nikola Milutinovic
Craig R. McClanahan wrote: > >>This is true in a very particular situation. Basically, a servlet >>container will instantiate ONE servlet class into an object. Each >>request is handled via it's own separate thread. Unless Servlet >>implements SingleThreadModel, all threads that are directed to

Re: Threads Question in Tomcat

2002-08-28 Thread Craig R. McClanahan
On Wed, 28 Aug 2002, Nikola Milutinovic wrote: > Date: Wed, 28 Aug 2002 07:15:57 +0200 > From: Nikola Milutinovic <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: Re: Threads Question i

Re: Threads Question in Tomcat

2002-08-27 Thread Jakarta Tomcat Newsgroup (@Basebeans.com)
Subject: Re: Threads Question in Tomcat From: [EMAIL PROTECTED] (Jakarta Tomcat Newsgroup (@Basebeans.com)) === Subject: Re: Threads Question in Tomcat From: [EMAIL PROTECTED] (Jakarta Tomcat Newsgroup (@Basebeans.com)) === Subject: Re: Threads Question in Tomcat From: [EMAIL PROTECTED

Re: Threads Question in Tomcat

2002-08-27 Thread Jakarta Tomcat Newsgroup (@Basebeans.com)
Subject: Re: Threads Question in Tomcat From: [EMAIL PROTECTED] (Jakarta Tomcat Newsgroup (@Basebeans.com)) === Subject: Re: Threads Question in Tomcat From: [EMAIL PROTECTED] (Jakarta Tomcat Newsgroup (@Basebeans.com)) === Subject: Re: Threads Question in Tomcat From: [EMAIL PROTECTED

Re: Threads Question in Tomcat

2002-08-27 Thread Jakarta Tomcat Newsgroup (@Basebeans.com)
Subject: Re: Threads Question in Tomcat From: [EMAIL PROTECTED] (Jakarta Tomcat Newsgroup (@Basebeans.com)) === Subject: Re: Threads Question in Tomcat From: [EMAIL PROTECTED] (Jakarta Tomcat Newsgroup (@Basebeans.com)) === Subject: Re: Threads Question in Tomcat From: [EMAIL PROTECTED

Re: Threads Question in Tomcat

2002-08-27 Thread Jakarta Tomcat Newsgroup (@Basebeans.com)
Subject: Re: Threads Question in Tomcat From: [EMAIL PROTECTED] (Jakarta Tomcat Newsgroup (@Basebeans.com)) === Subject: Re: Threads Question in Tomcat From: [EMAIL PROTECTED] (Jakarta Tomcat Newsgroup (@Basebeans.com)) === Subject: Re: Threads Question in Tomcat From: "Nikola Miluti

Re: Threads Question in Tomcat

2002-08-27 Thread Jakarta Tomcat Newsgroup (@Basebeans.com)
Subject: Re: Threads Question in Tomcat From: [EMAIL PROTECTED] (Jakarta Tomcat Newsgroup (@Basebeans.com)) === Subject: Re: Threads Question in Tomcat From: "Nikola Milutinovic" <[EMAIL PROTECTED]> === Pj4xLiBJcyBpdCB0cnVlIHRoYXQgcmVxdWVzdHMgZnJvbSB0aGUgU0FNRSBj

Re: Threads Question in Tomcat

2002-08-27 Thread Jakarta Tomcat Newsgroup (@Basebeans.com)
Subject: Re: Threads Question in Tomcat From: "Nikola Milutinovic" <[EMAIL PROTECTED]> === Pj4xLiBJcyBpdCB0cnVlIHRoYXQgcmVxdWVzdHMgZnJvbSB0aGUgU0FNRSBjbGllbnQNCj4+YWx3 YXlzIHNlcnZlZCBieSB0aGUgU0FNRSB0aHJlYWQ/DQo+DQo+Tm90IGFsd2F5

Re: Threads Question in Tomcat

2002-08-27 Thread Nikola Milutinovic
>>1. Is it true that requests from the SAME client >>always served by the SAME thread? > >Not always. Even if a servlet implements SingleThreadModel, the >container may still keep a pool of instances of this servlet and issue >requests as they come in, as long as no two requests share an ins

Re: Threads Question in Tomcat

2002-08-27 Thread Craig R. McClanahan
On Tue, 27 Aug 2002, Takumi Fujiwara wrote: > Date: Tue, 27 Aug 2002 09:13:55 -0700 (PDT) > From: Takumi Fujiwara <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Threads Question in Tomcat > > Hi, >

RE: Threads Question in Tomcat

2002-08-27 Thread Shapira, Yoav
Hi, Keep in mind that tomcat is a reference implementation of the servlet spec. I don't remember the servlet spec answering these questions, so tomcat isn't obliged to implement things any one way. >1. Is it true that requests from the SAME client >always served by the SAME thread? Not always.

Threads Question in Tomcat

2002-08-27 Thread Takumi Fujiwara
Hi, I have a few questions regarding Threads in Tomcat. I appreciate if anyone can help me on these: 1. Is it true that requests from the SAME client always served by the SAME thread? 2. What if the SAME client access 2 different servlets in a servlet container? Is it still served by the SAME th