How to increase max header size for GraphDB standalone server?

617 views Asked by At

I have started graphdb with the following call:

/usr/local/graphdb-free-9.4.0/bin/graphdb -Xms60g -Xmx60g -Dgraphdb.connector.port=7200 -s

When accessing over HTTP, some of the longer queries generate 400 errors:

Type Exception Report

Message Request header is too large

Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

How can the server be started so that headers of arbitrary size are accepted.

1

There are 1 answers

0
Konstantin Petrov On

The maximum size of the request and response HTTP header, specified in bytes, if not specified is set to 4096 (4 KB). “Request Header is too large“ error message is because auto generated query is too large. You may change Tomcat's maxHttpHeaderSize attribute by adding in graphdb.properties file under.

graphdb.connector.maxHttpHeaderSize = 65536