Javaのメソッドのサイズ制限64K

大きなjspを書くと、servletとしてコンパイルされたときにJVMのサイズ制限に
引っかかることがあるらしい。
初めて知った。

http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html#88659

The amount of code per non-native, non-abstract method is limited to 65536 bytes by the sizes of the indices in the exception_table of the Code attribute (§4.7.3), in the LineNumberTable attribute (§4.7.8), and in the LocalVariableTable attribute (§4.7.9). 
  • サーブレットコンテナはそれぞれサイズを減らす工夫をしているらしい。

Websphere5.xは静的コンテンツを外だし
http://www-06.ibm.com/jp/domino01/mkt/websphere.nsf/doc/0015B99E

Javaの各種ガイド
http://sdc.sun.co.jp/java/javase/reference/index.html