tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: Apache Load Balancer - truncating responses?
Date Sun, 21 Jun 2009 21:14:10 GMT
Dmitri O.Kondratiev wrote:
> Hello!
> I have the following problem:
> When using apache load balancer with Tomcat, *sometimes* responses get
> truncated , resulting in incomplete HTML of *wrong* encoding. My application
> that Tomcat runs always returns responses in utf-8, yet when truncated, page
> has a different encoding.
> The following combinations work:
> 1) IE -> Tomcat
> 2) IE -> Load Balancer -> Tomcat
> 3) WebLoad -> Tomcat
> The following returns truncated HTML:
> 1) WebLoad -> Load Balancer -> Tomcat
> Could Apache content negotiation be the reason for this error?
> Any other ideas why this could happen?
I can't answer, but just to save time for someone else who would like to 
help you, could you specify :
- what platforms is (are) this ?
- what versions of Apache and Tomcat ?
- what do you use to connect Apache and Tomcat (mod_proxy_http, 
mod_proxy_ajp, mod_jk, other ?)
- is Apache httpd configured to do any kind of caching ?
- what is "WebLoad" ?
- what do you mean by "page has a different encoding" ? How do you know 
that ? Is the HTTP response "Content-type" header different ? Is a 
<meta> tag in the page different ?

(If you do not know the answer to that, search in Google for "Fiddler2". 
  That is an add-on for IE, which allows you to see exactly what 
requests go from IE -> server, and the responses that go server -> IE. 
Including the HTTP headers, body etc..).

Also, to stop you maybe looking in the wrong place, I believe that 
Apache content negociation only happens when you specify it explicitly, 
and it should only happen for content that Apache itself can serve 
locally, not for anything that is proxied somewhere else.

Also, since according to your data below, it seems to be working fine in 
Tomcat itself, and not working fine when Apache httpd is in front of it, 
you may want to post this to the Apache httpd users list.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message