Tomcat - setting for max HTTP header size

less than 1 minute read

you can specify the max HTTP header size for Tomcap by modifying the file in conf/server.xml as shown below.

This example set max HTTP header size 24KB(24576)

1
    <Connector connectionTimeout="20000" port="9080" protocol="HTTP/1.1" redirectPort="9443" maxHttpHeaderSize="24576"/>