如何增加GraphDB独立服务器的最大标头大小?

问题描述

我通过以下调用启动了graphdb:

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

通过HTTP访问时,一些较长的查询会产生400个错误

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).

如何启动服务器,以便接受任意大小的标头。

解决方法

如果未指定,则请求和响应HTTP标头的最大大小(以字节为单位)设置为4096(4 KB)。 “请求标头太大”错误消息是因为自动生成的查询太大。 您可以通过在下面的graphdb.properties文件中添加来更改Tomcat的maxHttpHeaderSize属性。

graphdb.connector.maxHttpHeaderSize = 65536

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...