Extending the number of post parameters supported by Tomcat5 on RedHat Enterprise Linux 5
I have just had to work around a weird limit to the number of post parameters in Tomcat5 on RedHat Enterprise Linux 5 install. Specifically the error was
org.apache.catalina.connector.Request parseParameters WARNING: Exception thrown whilst processing POSTed parameters
java.lang.IllegalStateException: Parameter count exceeded allowed maximum: 512
A quick Google lead me to solution editing the catalina.properties file, but that can get overwritten by a yum update.
The adapted solution is to edit your /etc/syconfig/tomcat5.conf
file and extend the JAVA_OPTs variable to include
this parameter change.
-Dorg.apache.tomcat.util.http.Parameters.MAX_COUNT=10000
Jason
— 2012-06-18