tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat POST Section Execution Size limit
Date Thu, 15 Jan 2009 16:35:06 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

BT,

B T wrote:
> I have noticed that I am running into some type of limit with the
> POST section upon execution. When the POST logic being
> executed(includes SQL actions, CHOOSE logic, etc...) reaches a
> certain size, I get the following error
> "java.lang.IllegalStateException"If I trim any part of the POST
> Section actions, it works without issuing error.

Do you mean that the size of the request body can be large enough to
cause your JSP to fail, or are you saying that if you have a JSP that is
too big, you'll get this error?

The main portion of a JSP is compiled into a single method called
_jspService. Java methods have a limit of 64k bytes once compiled. If
you have so much code that you break this limit, you can get weird
errors, depending on the compiler.

Can you give us more information about this error? Take a look in
catalina.out and post the full stack trace (including any "caused by"
clauses). This will help a lot.

> I went through many of the config options (such as maxPostSize)
> outlined at
> http://tomcat.apache.org/tomcat-6.0-doc/config/http.htmland none of
> the changes seem to make a difference. None of the individual JSP
> files so far exceed about 55KB

The maxPostSize setting is to limit the amount of data that can be
/sent/ to the server in a POST body, not to limit the amount of code
that you can write to handle a POST request. I think you don't want to
mess with this setting.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklvZJIACgkQ9CaO5/Lv0PAhigCfb3So6kF/ykqQJi2oJ0F8poBf
GX8AoJlabdXK2aSWSSgzghzTBG13W4KD
=XOc2
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message