Symptoms
When HTTP headers or cookies exceed maximum buffer limits, client calls will fail with one of the following errors:
Root Causes
Header size is determined by the total sum of all request headers. Common causes for oversized headers include:
-
Bloated Auth Tokens: SAML/OIDC tokens containing thousands of unnecessary group assertions or runaway domain cookie accumulation.
-
Proxy Overhead: Too many custom headers added at the Layer 7 load balancer or reverse proxy level.
-
Restrictive Defaults: Default allowed header sizes set too low for environment demands.
Default Header Size Limits
How to Increase Header Size Limits?
Nginx Configuration
Update nginx.conf within the relevant server block:
Nginx
server {
...
# Applies to requests hitting this server block
large_client_header_buffers 4 32k;
location / {
...
}
}
Artifactory Configuration (`system.yaml`)
Update `system.yaml` on each node in an HA cluster, followed by a full service restart
artifactory:
tomcat:
connector:
extraConfig: "maxHttpHeaderSize='32768'"
access:
tomcat:
connector:
extraConfig: "maxHttpHeaderSize='32768'"
frontend:
env:
NODE_OPTIONS: "--max-http-header-size=32768"
Risks of Increasing Header Limits
Note:
Increasing header limits should serve as a temporary mitigation. Investigating and reducing actual header size is strongly recommended.