Jira users receiving the error 400 Bad Request: Message Request header is too large

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Requests with long Request Headers may receive the error "400 Bad Request: Message Request header is too large" error when trying to access Jira.

Diagnosis

Cause

This error message occurs when the header size in the HTTP request is bigger than the limit set in the webserver or application server.

Apache Tomcat limits the allowed size of the request and response HTTP header, specified in bytes using the attribute maxHttpHeaderSize. If not specified, this attribute is set to a default value, depending on the Apache Tomcat version.

Jira does configure Tomcat with the value maxHttpHeaderSize="8192".

Solution

1) Client-side:

  1. Clear Browser Cache.
  2. Clear Browser Cookies.
  3. File Upload Exceeds Server Limit.
  4. Deactivate Browser Extensions.

2) Server-side

Increase the max header size following the steps:

  • Shutdown Jira.
  • Edit <jira install>/conf/server.xml and increase the value of maxHttpHeaderSize to a higher size, for instance, "12288":
<Connector port="8080" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="12288" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false"/>
  • Restart Jira.

3) Proxy-side

If you are using a reverse proxy, you also need to make sure to set the request line limit to the same size:

(warning) Please ensure the maxHttpHeaderSize is set on the same proxy tomcat connector port so it does not limit the request header even though you have already set a higher value of header size on the proxy side.

Last modified on Jan 23, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.