title: Configure max post size for a external webapp in jetty
body: <p>My issue is as follows:</p>
  
  <p>I deliver a webapp.war and a Tomcat server to deploy it from. </p>
  
  <p>My client has the option to not use my server and use a service that deploys my app in Jetty as an external webapp.</p> 
  
  <p>
  That Jetty has a limitiation for POST size that is default (200k) and is too small for my app to run all its features properly - my HTTP 1/1 POST request get truncated and become mainly unusable.</p>
  
  <p>What I need to do is configure my webapp so that when deployed in Jetty as an external app, its max POST size is a value of my choosing - like 1M.</p> 
  
  <p>I have done some research and I found that one can configure jetty to change POST size only for a particular webapp, but as I don't use Jetty I am yet unclear where this settings should go and what is the difference, from the settings point of view, between an external webapp and an internal webapp in Jetty (other than path).</p>
  
  <p><br/>
  <a href="http://wiki.eclipse.org/Jetty/Howto/Configure_Form_Size#Changing_the_Maximum_Form_Size_for_All_Apps_on_a_Server" rel="nofollow">http://wiki.eclipse.org/Jetty/Howto/Configure_Form_Size#Changing_the_Maximum_Form_Size_for_All_Apps_on_a_Server</a><br/></p>
  
  <p><br/>
  <a href="http://wiki.eclipse.org/Jetty_WTP_Plugin/Jetty_WTP_External_WebApp" rel="nofollow">http://wiki.eclipse.org/Jetty_WTP_Plugin/Jetty_WTP_External_WebApp</a>
  <br/></p>
  
  <p>I would have liked to have found out more, but my research was not quite fortuitous with respect to external webapps in Jetty.
  <br/></p>
  
  <p>I have tried the JVM approach, setting "org.eclipse.jetty.server.Request.maxFormContentSize" environment variable to 1000000, but I noticed no change in my setup behaviour.</p>
  
  <p>The request is not truncated in Tomcat (which also runs on a default configuration), but was so far truncated on Jetty no matter what I did to stop that from happening.</p>
  
  <p>I should not change the Jetty server's global setting, if I can avoid it, but any progress would be welcome even if I have to compromise on this.</p>
  
  <p>Do you guys have any ideas on what I should do?</p>