SXI Forum

A place to collect usefull tips, tricks and implementation strategies.

You are not logged in.

#1 18-08-2019 17:49:51

StephanB
Member
Registered: 21-11-2018
Posts: 39

Apache Tomcat Post Size Limit

Apache Tomcat has a limit on the size of request that can be made using the POST HTTP method.

However, when your repository snapshot reaches over 55MB in un-compressed form,
Apache Tomcat must be configured to accept large amounts of data being sent to it,
as the compressed size of the repository approaches the default 2MB Post size limit.

To remove this limit, edit the /conf/server.xml file in the Tomcat home directory as follows:

Find the tag entry for the HTTP 8080 connector

Add the maxPostSize="0" attribute and value to this tag such that it looks like:

<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" maxPostSize="0" />

Connector Attribute:
maxHttpHeaderSize="8192"
maxThreads="150"
minSpareThreads="25"
maxSpareThreads="75"
enableLookups="false"
redirectPort="8443"
acceptCount="100"
connectionTimeout="20000"
disableUploadTimeout="true"
maxPostSize="0"

Offline

Board footer

Powered by FluxBB