????????????
????java.lang.OutOfMemoryError: Java heap space????????java????????????????????治????????????????????????????
?????????java????治??????????????????JVM????????????????
????<jvm-arg>-Xms3062m</jvm-arg>
????<jvm-arg>-Xmx3062m</jvm-arg>
?????????????
????java.lang.OutOfMemoryError: GC overhead limit exceeded
?????????????JDK6???????????????GC?????С?????????????????????????????С??????????????????????檔
?????????????????
????1??????????????????????????????
????2????????JVM????????????????棺
????<jvm-arg>-XX:-UseGCOverheadLimit</jvm-arg>
???????????????
????java.lang.OutOfMemoryError: PermGen space????????P????治?????????????JVM???????
????<jvm-arg>-XX:MaxPermSize=128m</jvm-arg>
????<jvm-arg>-XXermSize=128m</jvm-arg>
???????????
????JVM??Perm???????????Class??Meta??????Class???Loader??????PermGen space??????????????????GC??????????????????????????????????????64M??С?????????????????????????????64M??????????????????????????????128m????
??????????????
????java.lang.OutOfMemoryError: Direct buffer memory
????????-XX:MaxDirectMemorySize= ???????????JVM?????
????<jvm-arg>-XX:MaxDirectMemorySize=128m</jvm-arg>
??????????塿??
????java.lang.OutOfMemoryError: unable to create new native thread
???????????Stack??????????????????????????????????????Stack?????С???
?????????????????JVM????????????????stack????С??????????????????????С???????????????????3G??????Text/Data/BSS /MemoryMapping?????????Heap??Stack?????????????????????????????????????????????????????????1.??? -Xss????????????????????С???????????????????????????С???С?????StackOverflowError????2.???-Xms -Xmx ??????????Heap??С??????????Stack?????????Heap??乻?????
???????????????
????java.lang.StackOverflowError
????????????????????????????????????????????????????ò?ι???????????????????????????????С??
??????????????????????????????????ò?Σ?????-Xss??????????????С??