JVM ——GC _JStat , JMap JStack 常用

转载:

    先收集几个以后再看:

    http://dolphin-ygj.iteye.com/blog/366216 

    http://kangzye.blog.163.com/blog/static/36819223201199103346634/ 

http://27091497.blog.163.com/blog/static/1180625020111156222150/?fromdm&fromSearch&isFromSearchEngine=yes

http://harrywu304.blog.163.com/blog/static/84566032010111835920189/?fromdm&fromSearch&isFromSearchEngine=yes

性能调优: http://blog.csdn.net/cpzhong/article/category/828360 

      http://blog.csdn.net/cpzhong/article/details/6831751 

http://blog.csdn.net/cpzhong/article/details/6834964

 

 

对JVM 设置GC 日志:

setenv JAVA_OPTS "-Xmn384m -Xms1536m -Xmx1536m -XX:PermSize=128m -XX:MaxPermSize=256m"
setenv JAVA_OPTS "${JAVA_OPTS} -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xloggc:gc_`date '+%Y-%m-%d %H:%M:%S'`.log"

 

或: -verbose:gc -Xloggc:$CATALINA_HOME/logs/gc.log 

 

set JAVA_OPTS=%JAVA_OPTS% -Xms64m -Xmx1024m  -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xloggc:../logs/gc.log  -XX:MaxPermSize=64M -Dcom.sun.management.jmxremote.port=2012 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false

 

 

 

 

你可能感兴趣的:(jstack)