Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] MAXIMUM FORM CONTNT SIZE ISSUE and RequestHeader size

When it comes to setting the maxFormContentSize, do that on your specific WebApps.


[mybase]$ cat webapps/myapp.xml
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "">
<Configure id="root-webapp" class="org.eclipse.jetty.webapp.WebAppContext">
  <Set name="contextPath">/myapp</Set>
  <Set name="war"><Property name="jetty.webapps" />/myapp.war</Set>

  <Set name="maxFormContentSize">100200300</Set>
  <Set name="maxFormKeys">2000</Set>

Joakim Erdfelt / joakim@xxxxxxxxxxx

On Wed, Jun 17, 2020 at 6:49 PM Eze Ikonne <ike.ikonne@xxxxxxxxxx> wrote:

Hi all,


I have embedded Jetty, and I have set the following values into Jetty Server, but for some reason when these values exceeded the maximum set value, Jetty is not throwing exception or significant warning. What should I do so that Jetty will throw necessary error message either back to the client or in the log2j log file. Please see code snippet below. Any pointers would be greatly appreciated.


server.setAttribute(“org.eclipse.jetty.server.Request.maxFormContentSize", 200000);






Please refer to
for important disclosures regarding this electronic communication.
jetty-users mailing list
To unsubscribe from this list, visit

Back to the top