How to set request header size for jetty

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to set request header size for jetty

Andreas Müller
Hi,

the Jetty as bundled with jenkins cannot deal with headers larger than 8kB, but Jetty
can be configured to deal with larger headers, there is a setRequestHeaderSize() method
to the org.eclipse.jetty.server.HttpConfiguration class for this purpose. But what is the
accepted method to configure this for the Jetty in jenkins.war?

Best regards

Andreas Müller


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e13bc2a9-908a-4e4e-b52b-1927b7994818%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to set request header size for jetty

Victor Martinez
Hi,

 It might help: 
- https://issues.jenkins-ci.org/browse/JENKINS-26963
- https://issues.jenkins-ci.org/browse/JENKINS-24421
- https://issues.jenkins-ci.org/browse/JENKINS-20327

I hope it helps
Cheers

On Wednesday, 11 November 2015 15:41:12 UTC+1, Andreas Müller wrote:
Hi,

the Jetty as bundled with jenkins cannot deal with headers larger than 8kB, but Jetty
can be configured to deal with larger headers, there is a setRequestHeaderSize() method
to the org.eclipse.jetty.server.HttpConfiguration class for this purpose. But what is the
accepted method to configure this for the Jetty in jenkins.war?

Best regards

Andreas Müller


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9c1d8bbb-d9a0-4cc6-b3d1-b206365a1d37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to set request header size for jetty

Mohammed Zahriya
In reply to this post by Andreas Müller
HI Andreas,

were you able to resolve this issue? We have Jenkins installed on Linux using the RPM and need to increase the header size to get our SSO operational. What configuration file and parameter did you update to resolve the issue?

Error Currently encountered:

org.eclipse.jetty.util.log.JavaUtilLog warn

WARNING: Header is too large >8192



On Wednesday, November 11, 2015 at 6:41:12 AM UTC-8, Andreas Müller wrote:
Hi,

the Jetty as bundled with jenkins cannot deal with headers larger than 8kB, but Jetty
can be configured to deal with larger headers, there is a setRequestHeaderSize() method
to the org.eclipse.jetty.server.HttpConfiguration class for this purpose. But what is the
accepted method to configure this for the Jetty in jenkins.war?

Best regards

Andreas Müller


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6920b963-3f24-4b20-b640-f3cff888f12e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to set request header size for jetty

rongzhang
This post has NOT been accepted by the mailing list yet.
In reply to this post by Andreas Müller
Hi,
    were you able to resolve this issue?   We have Jenkins  run  in docker.
when I post data for jenkins server.
error log:
Feb 03, 2017 5:54:39 AM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: URI is too large >8192
Feb 03, 2017 5:54:39 AM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: badMessage: 414 for HttpChannelOverHttp@2f0636e9{r=0,c=false,a=IDLE,uri=}

Best regards

rongzhang
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to set request header size for jetty

stanislavzal
In reply to this post by Mohammed Zahriya
Please try this:
https://issues.jenkins-ci.org/browse/JENKINS-26963

workaround this by adding -Dorg.eclipse.jetty.server.Request.maxFormContentSize=500000 in the <arguments> XML node of <some_path>Jenkins\jenkins.xml 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d52a9d16-fd08-4ee3-a9f1-40bd4a32a7ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to set request header size for jetty

stanislavzal
In reply to this post by Mohammed Zahriya
hi

May 19, 2017 10:05:33 AM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Header is too large >8192


I added such options in jenkins.xml and it is resolved issue:
  <arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -Dorg.eclipse.jetty.server.HttpConfiguration.requestHeaderSize=32768 -Dorg.eclipse.jetty.server.HttpConfiguration.responseHeaderSize=32768 -Dorg.eclipse.jetty.server.Request.maxFormContentSize=500000 -jar "%BASE%\jenkins.war" --httpPort=8080 --requestHeaderSize=32768 --webroot="%BASE%\war"</arguments>




--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e7ae0d61-5b1f-401e-a30f-d3b54be8522e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...