jvm参数设置

JAVA_OPTS="-Xms2048m -Xmx2048m -Xmn768m -Xss512K -XX:PermSize=96m -XX:MaxPermSize=96m -XX:SurvivorRatio=8 -XX:InitialTenuringThreshold=8 -XX:MaxTenuringThreshold=8 -XX:ParallelGCThreads=4 -XX:TargetSurvivorRatio=70 -XX:+UseBiasedLocking -XX:-UseAdaptiveSizePolicy -verbose:gc -Xloggc:$CATALINA_BASE/logs/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintAdaptiveSizePolicy -XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -Djava.awt.headless=true -Dsun.net.client.defaultConnectTimeout=60000 -Dsun.net.client.defaultReadTimeout=60000 -Djmagick.systemclassloader=no -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.ttl=300 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$CATALINA_BASE/logs -XX:OnOutOfMemoryError=$CATALINA_HOME/bin/restart.sh"

 

#-XX:+PrintHeapAtGC -XX:+PrintTLAB -XX:+PrintGCApplicationConcurrentTime -XX:+PrintGCApplicationStoppedTime

#设置jmx监控不能使用-Xnoclassgc


你可能感兴趣的:(jvm)