JBoss has not enough space for HTTP-Header -> ArrayIndexOutOfBoundsException with 8192

During testing of a REST-Servcie, I got an ArrayIndexOutOfBoundsException with the Value 8192.

The service packaged a lot of Links into HTTP.

Older Versions of JBoss had a parameter in the connection configuration named maxHttpHeaderSize, but
in V7.x this is not available and you get a parser error on startup.

But setting the system property
to a value of your choice solves the problem if it is enough.

On my system I added it to JAVA_OPTS in standalone.conf 

JAVA_OPTS="$JAVA_OPTS -Dorg.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE=24000"