HttpRequest maximum allowable size in tomcat?

Java / Java EE programming language
Post Reply
User avatar
Cloakey
Posts: 54
Joined: Fri Oct 13, 2017 4:10 pm

HttpRequest maximum allowable size in tomcat?

Post by Cloakey » Sun Feb 11, 2018 9:09 am

Exactly what's the optimum data size I can send in single

Code: Select all

 HttpURLConnection 
to

Code: Select all

 Tomcat 
Is there any restriction for demand size?
Fell free to PM if you have any questions

User avatar
Nobiles
Posts: 51
Joined: Mon Sep 11, 2017 3:21 pm

Re: HttpRequest maximum allowable size in tomcat?

Post by Nobiles » Thu Mar 01, 2018 8:16 pm

The port section has the specification maxPostSize The optimum size in bytes of the POST which will be managed by the container TYPE URL specification parsing. The limitation can be disabled by setting this attribute to a value less than or equal to 0. If not defined, this attribute is set to 2097152 (2 megabytes). Another Limitation is: maxHttpHeaderSize The optimum size of the demand and action HTTP header, specified in bytes. If not defined, this quality is set to 4096 (4 KB). You discover them in

Code: Select all

 $TOMCAT_HOME/ conf/server. xml 

Post Reply