Hello,

It seems Tomcat 6 will close a connection even tough the browser requested it 
to remain open via a "Connection: Keep-Alive"
header if the ration (usedThread/totalThread) > 0.75 (Is this meant to prevent 
outage or DOS ?)  

 Http11Processor.java (line 778)
 
 if (threadRatio > 75)=20
 {
          keepAliveLeft =3D 1;
 }
 
If this is documented, I was unable to find it .
 
This feature was the source of an issue when my intranet
application started to get popular and reached 10 millions hits a day.
 
NTLM authentication handshake (which require 2 HTTP GET) was being terminated 
with a "Connection: Close" header right away and no-one could access the 
application during very busy hours.

The solution was to raise maxThread in the connector to
100 (default is 40), hence reducing the ratio.

It now works like a charm.
 
 Maybe it will help someone.
 
 Fabien Sanglard

__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible 
contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail

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

Reply via email to