----- Original Message -----
From: "Remy Maucherat" <[EMAIL PROTECTED]>
To: "Tomcat Developers List" <[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 8:16 AM
Subject: [5.0] Connector default configuration + connection timeout


> Hi,
>
> What would be the best connector default configuration ?
>
> I switched HTTP/1.1 to be:
> maxThreads: 100
> minSpare: 1
> maxSpare: 10
> That should be ok for a small/medium site, and bad for a large site. It
> should be decent for benchmarking if there's a warmup period. Should the
> default config be large site compliant ?

Jk-Coyote should probably match the Apache2 defaults, since with the
pre-fork MPM, connections are 1-1 with Apache2 children.

>
> Also, in order to conserve processors for useful tasks when the load
> increases (and also twart DoS attacks), I was thinking about introducing
>   dynamic scaling for the HTTP connection timeout for keepalive.
> The formula would be something like this.
>
> ratio = maxThreads / currentBusyThreads;
>
> if (ratio between 0 and 0.33) {
>      normal timeout
> } else if (ratio between 0.33 and 0.66) {
>      half timeout
> } else if (ratio between 0.66 and 1) {
>      no keepalive (so only one request is processed per connection),
> timeout / 4 (or maybe more)
> }
>

No keepalive sounds like a bad idea:  You are going to free-up connections
much faster if you get the image files out the pipe then if the browser is
immediately turning around and re-establishing a connection.  It might also
be a good idea if there was an option to disable this, for the few cases
where you care more about the the connected user's experience then the
new-connection speed (Applet classloading comes to mind).

> Comments ?
>
> Remy
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication in 
error, please notify us immediately by e-mail and then delete all copies of this 
message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through the 
Internet is not secure. Do not send confidential or sensitive information, such as 
social security numbers, account numbers, personal identification numbers and 
passwords, to us via ordinary (unencrypted) e-mail.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to