I get this error:
Exception during request processing:
Caused by javax.servlet.ServletException with message:
"Parameter count exceeded allowed maximum: 512"
There seems to be a limit on the number of parameter passed in a post.
How could I extend this limit in JBoss?
The number of parameters was limited in all web servers to plug the hashmap collision denial of service attack.
You can raise the limit by adding the following system property to the configuration file (e.g. standalone.xml
):
<property name="org.apache.tomcat.util.http.Parameters.MAX_COUNT" value="10000"/>
(source)
Just in case : for a plain Tomcat the corresponding solution is to add :
org.apache.tomcat.util.http.Parameters.MAX_COUNT=10000
in catalina.properties
Yes, it is right! Mr Aaron Digulla had right answer!
But please attention that: in Jboss 7, please insert the line
<system-properties>
<property name="org.apache.tomcat.util.http.Parameters.MAX_COUNT"value="10000"/>
</system-properties>
right after the <extensions>
tag, if not Jboss 7 will through error when parse standalone.xml, let me example:
<?xml version='1.0' encoding='UTF-8'?>
<server xmlns="urn:jboss:domain:1.2">
<extensions>
<extension module="org.jboss.as.clustering.infinispan"/>
<extension module="org.jboss.as.configadmin"/>
...
</extensions>
<system-properties>
<property name="org.apache.tomcat.util.http.Parameters.MAX_COUNT" value="10000" />
</system-properties>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With