Re: Tomcat 5.5 and keep-alive and http connector

2008-04-03 Thread Andrew Miehs



On 02/04/2008, at 6:02 PM, Andrew Miehs wrote:


On 02/04/2008, at 5:51 PM, Caldarale, Charles R wrote:
It appears that the chart at the bottom of the above page answers  
your
question, unless I'm misreading it.  Since there is no NIO  
connector in
5.5, it looks like you'll need a very large maxThreads value or set  
up

the APR connector (or move to Tomcat 6, which is what I'd do).



Put another way:

Does tomcat

a) Assign a connection to a single thread and only use this thread for  
the connection until the connection is closed?


or

b) Assign a request to a thread, and return the thread back to a  
controlling thread on completion of the request?



My understanding is that the answer is 'A' except for the case of NIO  
and Tomcat 6.


BTW: The last thing I heard is that APR is still recommended for  
performance and stability over TC 6 NIO - or

do you have any newer info?


Regards

Andrew

smime.p7s
Description: S/MIME cryptographic signature


RE: Tomcat 5.5 and keep-alive and http connector

2008-04-03 Thread Caldarale, Charles R
 From: Andrew Miehs [mailto:[EMAIL PROTECTED] 
 Subject: Re: Tomcat 5.5 and keep-alive and http connector
 
 Does tomcat
 a) Assign a connection to a single thread and only use this 
 thread for the connection until the connection is closed?
or
 b) Assign a request to a thread, and return the thread back 
 to a controlling thread on completion of the request?
 
 My understanding is that the answer is 'A' except for the 
 case of NIO and Tomcat 6.

I believe you are correct, but I'd like to hear from Filip H to make
sure.

 BTW: The last thing I heard is that APR is still recommended 
 for performance and stability over TC 6 NIO - or do you have 
 any newer info?

I think the only significant performance difference is with SSL - the
OpenSSL package is noticeably faster than JCE.  I'm not aware of any
stability issues with either.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5 and keep-alive and http connector

2008-04-02 Thread Andrew Miehs

Dear List,

How does enabling keep-alives effect the number of threads required by  
tomcat?


Assuming:
   maxKeepAliveRequest = -1
   1000 online users - each with 2 connections

Does this mean that I will have 2000 threads open - one per connection?
ie: Is the the connection assigned a thread until the connection is  
closed?
Or are the connections only assigned to the thread during the request  
period?


The only thing I could find related to this was from the Tomcat 6.0  
documentation on

http://people.apache.org/~fhanik/http.html


...
Each incoming request requires a thread for the duration of that  
request. If more simultaneous requests are received than can be  
handled by the currently available request processing threads,  
additional threads will be created up to the configured maximum (the  
value of the maxThreadsattribute). If still more simultaneous  
requests are received, they are stacked up inside the server socket  
created by the Connector, up to the configured maximum (the value of  
the acceptCount attribute. Any further simultaneous requests will  
receive connection refused errors, until resources are available  
to process them.


Although there is no mention here of 'connections' - or is this  
specific to the NIO modification for the tomcat 6 connector?



Thanks for any help,

Regards

Andrew



smime.p7s
Description: S/MIME cryptographic signature


RE: Tomcat 5.5 and keep-alive and http connector

2008-04-02 Thread Caldarale, Charles R
 From: Andrew Miehs [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat 5.5 and keep-alive and http connector
 
 The only thing I could find related to this was from the
 Tomcat 6.0 documentation on
 http://people.apache.org/~fhanik/http.html

It appears that the chart at the bottom of the above page answers your
question, unless I'm misreading it.  Since there is no NIO connector in
5.5, it looks like you'll need a very large maxThreads value or set up
the APR connector (or move to Tomcat 6, which is what I'd do).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 and keep-alive and http connector

2008-04-02 Thread Andrew Miehs


On 02/04/2008, at 5:51 PM, Caldarale, Charles R wrote:

From: Andrew Miehs [mailto:[EMAIL PROTECTED]
Subject: Tomcat 5.5 and keep-alive and http connector

The only thing I could find related to this was from the
Tomcat 6.0 documentation on
http://people.apache.org/~fhanik/http.html


It appears that the chart at the bottom of the above page answers your
question, unless I'm misreading it.  Since there is no NIO connector  
in

5.5, it looks like you'll need a very large maxThreads value or set up
the APR connector (or move to Tomcat 6, which is what I'd do).


I looked at the chart - but was not quite sure if it really answers my  
question...


Are the threads assigned permanently to a connection? or can one  
thread be used

for multiple connections?

Andrew

smime.p7s
Description: S/MIME cryptographic signature