mbean & tomcat
http://oss.wxnet.org/mbeans.htmlhttp://tomcat.apache.org/tomcat-6.0-doc/monitoring.html
http://yuanlijia1.javaeye.com/blog/870106 :
set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=10090 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
http://localhost:8080/manager/jmxproxy/
http://dev.firnow.com/course/3_program/java/javajs/20100719/460604.html
PermGen space的全稱(chēng)是Permanent Generation space,是指內(nèi)存的永久保存區(qū)域OutOfMemoryError: PermGen space。從文字上看就是內(nèi)存溢出,解決方法是加大內(nèi)存。為什么會(huì)內(nèi)存溢出,這是由于這塊內(nèi)存主要是被JVM存放Class和Meta信息的,Class在被Load的時(shí)候被放入PermGen space區(qū)域,它和存放Instance的Heap區(qū)域不同,GC(Garbage Collection)不會(huì)在主程序運(yùn)行期對(duì)PermGen space進(jìn)行清理,所以如果你的APP會(huì)LOAD很多CLASS的話,就很可能出現(xiàn)PermGen space錯(cuò)誤。這種錯(cuò)誤常見(jiàn)在web服務(wù)器對(duì)JSP進(jìn)行pre compile的時(shí)候。如果你的WEB APP下都用了大量的第三方j(luò)ar, 其大小超過(guò)了jvm默認(rèn)的大小(4M)那么就會(huì)產(chǎn)生此錯(cuò)誤信息了。
posted on 2011-03-19 11:00 w@ns0ng 閱讀(211) 評(píng)論(0) 編輯 收藏 所屬分類(lèi): java 、mbean