技術メモのかけら

内容はもとより調べたことすら忘れてしまうので個人的なメモです。とにかく短く、結論だけ書いていきます。

TomcatのmaxPostSize

TomcatはデフォルトでPostサイズが2MBを超えるとエラーになる。 デフォルト値を変更するにはserver.xmlにmaxPostSizeを指定する。

The maximum size in bytes of the POST which will be handled by the container FORM URL parameter parsing. The limit can be disabled by setting this attribute to a value less than or equal to 0. If not specified, this attribute is set to 2097152 (2 megabytes).

公式ページによると0またはマイナスを指定すると無制限になるようだ。