技術メモのかけら

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

Tomcat

jconsoleでリモートのTomcatを監視する

毎度忘れるのでメモしておく。 事前準備としてTomcat起動のjavaオプションに以下を追加しておく。 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7900 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.aut…

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 ca…

TomcatのmaxParameterCount

POSTしているはずの項目がサーバ側で取得できない事象が発生。 大量にPOSTした場合だけに発生するので単純なアプリのバグではない。 Tomcatのログ(catalina.out)にログが吐かれていた。 INFO: More than the maximum number of request parameters (GET pl…