Optimizing the Magnify Environment

When indexing large documents, we recommend that you change the application server limits for files that it accepts through an HTTP POST operation.

For example, in the Tomcat application server, the maxPostSize parameter can be updated in /path/tomcat/conf/server.xml to remove the limit, as follows:

<Connector port="8080"
redirectPort="8443" maxPostSize="-1"

The default value for maxPostSize is 2097152 (2 megabytes). If this limit is exceeded, the following error is written in the Tomcat log:

java.lang.IllegalStateException: Post too large
at org.apache.catalina.connector.Request.parseParameters(Request.java:2368)
at org.apache.catalina.connector.Request.getParameter(Request.java:1005)