apache and tomcat – packetsize per request

During a consulting project i had some trouble with the following environment

Infrastructure

Loadbalancer >> Apache >> Tomcat / JBoss

Each request ended in a 400 Bad Request but the configuration looks good and works fine with other projects.

In the end we made some configuration modifications to the apache and tomcat.

Configuration

Apache

LimitRequestFieldSize 16384
ProxyIOBufferSize 16384

Tomcat

<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector address="10.a.b.c" port="8009" protocol="AJP/1.3" redirectPort="8443" packetSize="16384" />

Refs

Tomcat AJP Docu
Apache 2.2 mod_proxy