HowTo Change default Pool MaxSize for SingleThreadModel Servlets

2005-06-16 Thread Martín Cabrera
Hi all; I have a servlet that implements the SingleThreadModel interface. I have noticed that, under heavy weight, tomcat is restricting the servlet pool size to 22 instances. My question is: How can I do to change this limit? Regards. Martín. -- No virus found in this outgoing message

Re: HowTo Change Pool MaxSize for SingleThreadModel Servlets

2005-06-14 Thread 孙业海
Mart?_Cabrera,您好! I think you can use singlton pattern! === 2005-06-14 16:48:00 您在来信中写道:=== >Hi all; > >How can I do to change the default pool size for SingleThreadModel servlets? > >Regards. >Mart?. > >-- >No virus found in this outgoing message.

Re: HowTo Change Pool MaxSize for SingleThreadModel Servlets

2005-06-14 Thread 孙业海
Mart?_Cabrera,您好! I think you can use singlton pattern! === 2005-06-14 16:48:00 您在来信中写道:=== >Hi all; > >How can I do to change the default pool size for SingleThreadModel servlets? > >Regards. >Mart?. > >-- >No virus found in this outgoing message.

RE: HowTo Change Pool MaxSize for SingleThreadModel Servlets

2005-06-14 Thread Martín Cabrera
SingleThreadModel Servlets Hi all What are the different extension mechanism for Tomcat or in other words how do we extend Tomcat. Can we write some plug-in in Tomcat environment. From what I have gathered till now it looks like Tomcat's server.xml file can be customized for className attibute etc. Apart

Re: HowTo Change Pool MaxSize for SingleThreadModel Servlets

2005-06-14 Thread Pawan Choudhary
what are the different extension point to Tomcat. Thanks all, Pawan On 6/14/05, Martín Cabrera <[EMAIL PROTECTED]> wrote: > Hi all; > > How can I do to change the default pool size for SingleThreadModel servlets? > > Regards. > Martín. > > -- > No virus found

HowTo Change Pool MaxSize for SingleThreadModel Servlets

2005-06-14 Thread Martín Cabrera
Hi all; How can I do to change the default pool size for SingleThreadModel servlets? Regards. Martín. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 267.6.6 - Release Date: 08/06/2005

Re: Number of instances with SingleThreadModel

2003-11-14 Thread cyril vidal
thanks all for your responses. Regards, Cyril. - Original Message - From: "Remy Maucherat" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, November 14, 2003 2:57 PM Subject: Re: Number of instances with SingleThreadModel

Re: Number of instances with SingleThreadModel

2003-11-14 Thread Christopher Schultz
Tim, SingleThreadModel is also deprecated in 2.4 Servlet API Woo hoo! -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Number of instances with SingleThreadModel

2003-11-14 Thread Tim Funk
SingleThreadModel is also deprecated in 2.4 Servlet API -Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Number of instances with SingleThreadModel

2003-11-14 Thread Remy Maucherat
cyril vidal wrote: Hi, These infos are useful but have nothing to deal with my initial question;-)) So, I ask it again, if some people know about THIS subject: is it possible in Tomcat's configuration to specify the number of servlet instances created when this servlet implements the javax.servle

RE: Number of instances with SingleThreadModel

2003-11-14 Thread Shapira, Yoav
vlet.SingleThreadModel interface. No, it's not possible to specify. SingleThreadModel is evil, don't use it. If you're curious why, search the archives of this list. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may con

Re: Number of instances with SingleThreadModel

2003-11-14 Thread cyril vidal
ay, November 14, 2003 10:58 AM Subject: Re: Number of instances with SingleThreadModel > Useful methods on the Runtime class: > In jdk 1+ Runtime.getRuntime().getTotalMemory(); > In jdk 1+ Runtime.getRuntime().getFreeMemory(); > In jdk 1.4 Runtime.getRuntime().getMaxMemory(); > Thes

Re: Number of instances with SingleThreadModel

2003-11-14 Thread Jon Wingfield
Useful methods on the Runtime class: In jdk 1+ Runtime.getRuntime().getTotalMemory(); In jdk 1+ Runtime.getRuntime().getFreeMemory(); In jdk 1.4 Runtime.getRuntime().getMaxMemory(); These methods are diagnostic. You'll need to find out why you are getting OutOfMemory errors. Time to profile your

RE: Number of instances with SingleThreadModel

2003-11-14 Thread Neal
Does anyone know how I can check to see how much memory is in use or available on Tomcat at any point in time? I've been getting a java.error.OutOfMemory error lately and I need to be able to track what's going on. Thanks. Neal --

Number of instances with SingleThreadModel

2003-11-14 Thread cyril vidal
Hi, I would like to know if it is possible in Tomcat's configuration to specify the number of servlet instances created when this servlet implements the javax.servlet.SingleThreadModel interface. Thanks in advance for your response, Regards, Cyril. -

Bug ? Init is called twice in SingleThreadModel

2003-07-09 Thread Hal Lander
I modified my init method as suggested by Yoav. The new init() and its output are shown below. The addresses printed are different so it appears I have two instances of my servlet. Bill said that "instance-pooling for STM Servlets" is normal behaviour. I was expecting that, since I am the only p

Re: Bug ? Init is called twice in SingleThreadModel

2003-07-02 Thread Bill Barker
Servlet, and hence multiple calls to init. "Hal Lander" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The init method of my servlet is called twice if my class implements the > SingleThreadModel. > Full details are given below. If I remove "implements Singl

RE: Bug ? Init is called twice in SingleThreadModel

2003-07-02 Thread Shapira, Yoav
Howdy, >The init method of my servlet is called twice if my class implements the >SingleThreadModel. >Full details are given below. If I remove "implements SingleThreadModel" >init is called only once - as I would expect. > >Is this a bug? >Any help would b

Bug ? Init is called twice in SingleThreadModel

2003-07-02 Thread Hal Lander
The init method of my servlet is called twice if my class implements the SingleThreadModel. Full details are given below. If I remove "implements SingleThreadModel" init is called only once - as I would expect. Is this a bug? Any help would be appreciated. Hal. THE S

RE: Using SingleThreadModel under tomcat

2003-01-23 Thread Shapira, Yoav
Howdy, Other people have already explained how tomcat does things. I just wanted to chime in saying SingleThreadModel is potentially worse than just a waste of time: it can mislead you into thinking your servlet and all the code it touches is automatically thread safe. It's not. Yoav Sh

Re: Using SingleThreadModel under tomcat

2003-01-23 Thread Erik Price
Colquhoun, Adrian wrote: Hi I have a stateless servlet application in which I am considering implementing SingleThreadModel. I note from the archives a number of posts which suggest that implementing SingleThreadModel will impose a performance overhead when running under tomcat. Could anyone

RE: Using SingleThreadModel under tomcat

2003-01-23 Thread Daniel Brown
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

RE: Using SingleThreadModel under tomcat

2003-01-23 Thread Felipe Schnack
in a > non-distributed environment) and passes all requests received concurrently > through the service method of that instance. > > If, however, the servlet implements SingleThreadModel, then the container > has two choices: > > 1. serialise all requests through the single inst

RE: Using SingleThreadModel under tomcat

2003-01-23 Thread Daniel Brown
tance. 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 Option 1 has an obvious perfor

Using SingleThreadModel under tomcat

2003-01-23 Thread Colquhoun, Adrian
Hi I have a stateless servlet application in which I am considering implementing SingleThreadModel. I note from the archives a number of posts which suggest that implementing SingleThreadModel will impose a performance overhead when running under tomcat. Could anyone provide me with a

Re: Q: SingleThreadModel and Tomcat

2002-12-11 Thread Felipe Schnack
gt; > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > > Subject: Q: SingleThreadModel and Tomcat > > > > It seems like different servlet containers vary in how they approach access to >classes that implement SingleThreadModel. When

Re: Q: SingleThreadModel and Tomcat

2002-12-10 Thread Craig R. McClanahan
On Mon, 9 Dec 2002, David Boyer wrote: > Date: Mon, 09 Dec 2002 12:19:12 -0600 > From: David Boyer <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Q: SingleThreadModel and Tomcat > > It seems like differe

servlet implementing SingleThreadModel

2002-12-09 Thread Patricio Vera S.
Hello, I tried to understand the implementation of SingleThreadModel on Jakarta-Tomcat servlet engine. The idea is run one instance of the servlet with the "opcion" parameter = SS so the servlet run in a cycle for ever and then call in a new window the same servlet with t

Q: SingleThreadModel and Tomcat

2002-12-09 Thread David Boyer
It seems like different servlet containers vary in how they approach access to classes that implement SingleThreadModel. When multiple threads want to access the class, some servlet containers will create multiple instances of the class while others queue the threads for exclusive access to a

RE: SingleThreadModel under Tomcat 3.3.1 is not working???

2002-05-15 Thread Larry Isaacs
Sorry it missed getting into the documentation beyond the readme-3.3.1, but Tomcat 3.3.1 now supports a SingleThreadModel pooling, which is enabled by default. Thus, this is normal behavior. If you wish to disable the pooling, modify the server.xml to contain: Cheers, Larry

SingleThreadModel under Tomcat 3.3.1 is not working???

2002-05-15 Thread Atnite
at a time. But, when I run the very same servlet under Tomcat 3.3.1, despite that I've implemented SingleThreadModel in servlet and even made extra synchronization, it still has no effect - requests are served all at the time of their arrival. The question is - is it a bug of Tomcat 3.3.1

RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Scott Shorter
> I guess I can deploy to somewhere besides webapps - that > should do it, huh? > > I'll try that and let all know. That did the trick. Thanks for the pointers, Randy and Mark. - Scott -- To unsubscribe: For additional commands: Trouble

RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Scott Shorter
> > 3. Having the same context loaded multiple times. > > This generally happens because the AutoContextLoader (or > > whatever its called) is still enabled and an explicit Context > > is also defined, making two contexts (and two instances of > > the servlets). > > Maybe. I do have a co

RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Scott Shorter
Randy, Thanks for clarifying what you meant. > 1. Multiple tags in web.xml Nope. > 2. One or more tag(s) in web.xml and using > /servlets/ to access your servlet Nope. > 3. Having the same context loaded multiple times. > This generally happens because the AutoConte

RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Wagoner, Mark
oaded? Just a wild guess. -Original Message- From: Scott Shorter [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 9:09 AM To: 'Tomcat Users List' Subject: RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel Mark, This sou

RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Randy Layman
age- > From: Scott Shorter [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 01, 2002 9:05 AM > To: 'Tomcat Users List' > Subject: RE: Getting multiple instances of my servlet, although it > doesn't implement SingleThreadModel > > > Randy, > > The servle

RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Scott Shorter
1, 2002 9:06 AM > To: 'Tomcat Users List' > Subject: RE: Getting multiple instances of my servlet, > although it doesn't implement SingleThreadModel > > > I don't think this is exactly true. I have an app using the > mediator design pattern, in which

RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Scott Shorter
#x27; > Subject: RE: Getting multiple instances of my servlet, > although it doesn't implement SingleThreadModel > > > > Basically, Tomcat will create a separate instance for > each unique URL that the servlet responses to. > > (Technically, every time you d

RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Wagoner, Mark
mcat Users List' Subject: RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel Basically, Tomcat will create a separate instance for each unique URL that the servlet responses to. (Technically, every time you define the servlet

RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Randy Layman
by /servlet/className.) Randy > -Original Message- > From: Scott Shorter [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 4:34 PM > To: 'Tomcat Users List' > Subject: Getting multiple instances of my servlet, although it doesn't

Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-02-28 Thread Scott Shorter
All, I have a servlet that loads on startup, per the tag in web.xml. It does *not* implement SingleThreadModel. Unfortunately, two instances start up every time Tomcat starts - I can tell because I have a System.out.println call in init(). I need for there to be only one instance. What

RE: SingleThreadModel only giving 1 thread

2001-10-31 Thread Edward Ivanovic
Hi Troy, Sorry I didn't get around to replying earlier. I'm stopped using Tomcat and replaced it with the Jetty server from http://www.mortbay.org/ It addresses the issues/problems with the SingleThreadModel, cookies, and host name resolution - all of which I was having problems with

RE: SingleThreadModel only giving 1 thread

2001-10-19 Thread Richard Troy
> That's incredibly frustrating as there are very valid cases where you need > to use the SingleThread model and still support more than 1 user. ...After reading my other post on this subject, please reply. If my other post didn't nail it, I want to know. I may have overlooked something, and I'd

Re: SingleThreadModel only giving 1 thread

2001-10-19 Thread Richard Troy
> > I'm using Tomcat 4.0 and have a servlet that implements SingleThreadModel. > > In every other app server I've tried (WebSphere & WebLogic) multiple > > instances of this servlet are created and handle concurrent requests. > > > > However, i

Re: SingleThreadModel only giving 1 thread

2001-10-19 Thread Remy Maucherat
> Edward Ivanovic at [EMAIL PROTECTED] wrote: > > > That's incredibly frustrating as there are very valid cases where you need > > to use the SingleThread model and still support more than 1 user. The > > SingleThreadModel is a necessary API - I don't think noth

Re: SingleThreadModel only giving 1 thread

2001-10-19 Thread Pier Fumagalli
Edward Ivanovic at [EMAIL PROTECTED] wrote: > That's incredibly frustrating as there are very valid cases where you need > to use the SingleThread model and still support more than 1 user. The > SingleThreadModel is a necessary API - I don't think nothing horrible about &

RE: SingleThreadModel only giving 1 thread

2001-10-19 Thread Edward Ivanovic
That's incredibly frustrating as there are very valid cases where you need to use the SingleThread model and still support more than 1 user. The SingleThreadModel is a necessary API - I don't think nothing horrible about it. As for thread safety, that's something programmers need

Re: SingleThreadModel only giving 1 thread

2001-10-19 Thread Pae Choi
PROTECTED] >> To: [EMAIL PROTECTED] >> Subject: SingleThreadModel only giving 1 thread >> >> I'm using Tomcat 4.0 and have a servlet that implements SingleThreadModel. >> In every other app server I've tried (WebSphere & WebLogic) multiple >> instances of this

Re: SingleThreadModel only giving 1 thread

2001-10-19 Thread Craig R. McClanahan
On Fri, 19 Oct 2001, Edward Ivanovic wrote: > Date: Fri, 19 Oct 2001 17:31:03 -0400 > From: Edward Ivanovic <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: SingleThreadModel only giving 1 thread > > I'm using Tomcat 4.0 an

SingleThreadModel only giving 1 thread

2001-10-19 Thread Edward Ivanovic
I'm using Tomcat 4.0 and have a servlet that implements SingleThreadModel. In every other app server I've tried (WebSphere & WebLogic) multiple instances of this servlet are created and handle concurrent requests. However, in Tomcat it only creates one instance of the servlet a

Re: SingleThreadModel

2001-04-23 Thread Milt Epstein
On Mon, 23 Apr 2001, Thomas Roeblitz wrote: > Hi, > > I'm wondering how Tomcat (Versions 3.1 and 3.2) implements the > SingleThreadModel. I was observing (v3.1) the case that parallel > requests were executed concurrently for the very beginning, but > later not. This beh

SingleThreadModel

2001-04-23 Thread Thomas Roeblitz
Hi, I'm wondering how Tomcat (Versions 3.1 and 3.2) implements the SingleThreadModel. I was observing (v3.1) the case that parallel requests were executed concurrently for the very beginning, but later not. This behavior has been reported by some other people. Regarding version 3.2.1 I fo

RE: Servlet -- SingleThreadModel

2001-04-18 Thread Wasniewski Arkadiusz
You can't use space! Try wrapper.java_home=C:\Progra~1\jdk1.3.0_02 Arek > -Original Message- > From: Colin Shreffler [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 13, 2001 8:02 PM > To: '[EMAIL PROTECTED]' > Subject: RE: Servlet -- SingleThreadMode

RE: Servlet -- SingleThreadModel

2001-04-13 Thread Randy Layman
L PROTECTED]] > Sent: Friday, April 13, 2001 2:02 PM > To: '[EMAIL PROTECTED]' > Subject: RE: Servlet -- SingleThreadModel > > > In trying to install TomCat as an NT service, I get the > following error in > the jvm.stderr file when trying to start the NT servic

RE: Servlet -- SingleThreadModel

2001-04-13 Thread Colin Shreffler
In trying to install TomCat as an NT service, I get the following error in the jvm.stderr file when trying to start the NT service: java.lang.NoClassDefFoundError: Files\jdk1/3/0_02\bin\java/exe Exception in thread "main" java.lang.NoClassDefFoundError: Files\jdk1/3/0_02\bin\java/exe Exception in

Re: Servlet -- SingleThreadModel

2001-04-13 Thread Tim O'Neil
At 12:42 PM 4/13/2001 -0500, you wrote: >You can't really avoid dealing with concurrency issues in Java. The >best thing to do is to just bite the bullet, learn what you need to >about concurrency, analyze your code, and make it handle it as >best/easily as possible. Avoid concurrency issues as

Re: Servlet -- SingleThreadModel

2001-04-13 Thread Milt Epstein
On Thu, 12 Apr 2001, eric leung wrote: > I have a servlet implements the SingleThreadModel Interface. But > this servlet has problem handle more than 1 request at a time. > > Since I have 1 person on host1 upload a big file ( > 20MB ) to the > servlet. When the 2nd pers

Re: Servlet -- SingleThreadModel

2001-04-13 Thread Bo Xu
eric leung wrote: > I have a servlet implements the SingleThreadModel > Interface. But this servlet has problem handle more > than 1 request at a time. > > Since I have 1 person on host1 upload a big file ( > > 20MB ) to the servlet. When the 2nd person on host2 > send a

RE: Servlet -- SingleThreadModel

2001-04-13 Thread Craig Pfeifer
> I have a servlet implements the SingleThreadModel > Interface. But this servlet has problem handle more > than 1 request at a time. I thought that this was the definition of a SingleThreadModel servlet? To enable this servlet to handle > 1 request, you have to tell your servlet

Re: Servlet -- SingleThreadModel

2001-04-12 Thread Jeff Kilbride
That's the whole point of SingleThreadModel, ensuring only one request accesses a given servlet instance at any one time. Check the javadoc: http://tomcat.mslinn.com/jsp22_servlet11/index.html To handle more than one request at a time, the servlet container uses a pool of instances o

Re: Servlet -- SingleThreadModel

2001-04-12 Thread eric leung
David, Thanks your suggestion. But I don't think this is a good solution. i have already 50Kb of code in that servlet class. if i need to move it to another class. that will be alot of work. My question is why implement SingleThreadModel interface can't handle more than 1 request

Re: Servlet -- SingleThreadModel

2001-04-12 Thread David Crooke
g wrote: I have a servlet implements the SingleThreadModel Interface. But this servlet has problem handle more than 1 request at a time. Since I have 1 person on host1 upload a big file ( > 20MB ) to the servlet.  When the 2nd person on host2 send a request to that servlet. The servlet will not resp

Servlet -- SingleThreadModel

2001-04-12 Thread eric leung
I have a servlet implements the SingleThreadModel Interface. But this servlet has problem handle more than 1 request at a time. Since I have 1 person on host1 upload a big file ( > 20MB ) to the servlet. When the 2nd person on host2 send a request to that servlet. The servlet will not respo

Re: Does Tomcat3.2.1 use a servlet pool in SingleThreadModel

2001-03-09 Thread Andrew Robson
Hi, No. It synchronizes the calls to the service method (see Craig McLanahan's post from 2nd of March). That tomcat properly implements SingleThreadModel should be easy to verify by generating a unique id for each of your requests and tracing their execution. Andrew On Fri, 09 Mar 2001

Does Tomcat3.2.1 use a servlet pool in SingleThreadModel

2001-03-08 Thread Zou Hua
Hello, I am testing the SingleThreadModel. My test way was to write a servlet which will take 3 minutes to process a request. Then I opened serveral browsers to send requests almost in the same time. Form the responses, I found out that all the responses were generated by the same servlet

Tomcat Servlet SingleThreadModel Question

2001-02-27 Thread Walter Prabhakar
Hello Kief, How is SingleThreadModel handled in Tomcat 3.2.1 ? Is it possible to specify Min and Max Threads ( assuming that if a thread is free a Servlet can be instatiated and executed in that thread ) in Tomcat 3.2.1 so that the response time is less and at the same time the CPU is not

Re: Tomcat-- SinglethreadModel

2001-01-23 Thread Kief Morris
Saikat Chatterjee typed the following on 01:25 PM 1/23/2001 +0530 >I have a question regarding Tomcat. Does Tomcat implements the >servlets as SingleThreadModel or MultipleThreadModel? Both. According to the servlet spec, by default servlets allow multiple threads, so multiple

Tomcat-- SinglethreadModel

2001-01-22 Thread Saikat Chatterjee
Hello all, I have a question regarding Tomcat. Does Tomcat implements the servlets as SingleThreadModel or MultipleThreadModel? Thanks, Saikat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands