Keep-Alive header not sent from Tomcat 5.5 http connector?

Posted by Codek on Server Fault See other posts from Server Fault or by Codek
Published on 2010-06-08T10:20:41Z Indexed on 2012/04/09 11:32 UTC
Read the original article Hit count: 444

Filed under:
|
|

We're currently using a hardware load balancer, which then goes to Apache and that then goes to Tomcat 5.5 via the AJP connector.

We've decided to dump apache for various reasons - In our current system it doesnt provide any advantage.

However when I look at the headers sent when we do this, the "Keep-Alive: timeout=15 max=96" header doesnt get sent when you use the tomcat http connector

Interestingly, i can find no documentiation on "keepalivetimeout" for tomcat5.5, but i can for tomcat6. But neither can i find evidence that tomcat5.5 doesnt support this setting.

here's my connector:

<Connector port="8090" maxHttpHeaderSize="8192"
               maxThreads="400" minSpareThreads="150" maxSpareThreads="300"
               enableLookups="false"
               connectionTimeout="2" maxKeepAliveRequests="400" disableUploadTimeout="true" />

So; Is there any way I can specify the keepalive timeout if we use the http connector with tomcat 5.5, and force this header entry to be sent?

Just to be clear - the exact header entry i see back from the server is this with apache:

Keep-Alive: timeout=2, max=100

But nothing from tomcat/coyote.

I've looked at this some more, and I dont think the Keep-Alive header entry really matters. The problem seems to be that keep-alives are simply not supported in tomcat 5.5 http connector? They do seem to work in tomcat6 (+java 6).

Thanks, Dan

© Server Fault or respective owner

Related posts about tomcat

Related posts about keepalive