
java.lang.OutOfMemoryError:PermGen?space쳣

PermGen spaceȫPermanent Generation space,ָڴñ,
ڴҪǱJVMClassMetaϢ,ClassڱLoaderʱͻᱻŵPermGenspace,
ʹʵ(Instance)Heapͬ,GC(GarbageCollection)ڶ
PermGen spaceӦкܶCLASSĻ,ͺܿܳPermGenspace,
ִ󳣼webJSPpre compileʱWEB APP¶˴ĵjar,С
jvmĬϵĴС(4M)ôͻ˴Ϣˡ

취

Tomcat Javaѡã

*********************ע治Ҫпո񣬲ȻTomcat޷ **********************
-XX:PermSize=64M
-XX:MaxPermSize=256M
-XX:MaxNewSize=256M
 

2 Ҫ jconsole мأڣʣ֣Ͳм

*******************JVMм²,עβҪпո *****************
-Dcom.sun.management.jmxremote.port=4991
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false

 jconsole.exe  ӲΪ
servername:  localhost
username:  monitorRole
password: QED

