- Open
SERVER.XML from the Tomcat installation
directory, (default location is
C:\Program Files\Apache Software Foundation\Tomcat
9.0\conf).
- Find the
<Connector Port="8080"> tag and change the
values of
maxHttpHeaderSize and
maxPostSize as follows:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="200000"
redirectPort="8443"
asyncTimeout="600000"
maxHttpHeaderSize="65536"
maxPostSize="4194304"/>
Note: If
<Connector Port="8080"> tag does not appear in
SERVER.XML, you need to create it and change
values of
maxHttpHeaderSize and
maxPostSize as described in this
section.