jvm性能调优

云平台未调优:

JAVA_OPTS='
-server
-Xms2g -Xmx2g -Xmn768m -Xss256k
-XX:PermSize=64m
-XX:MaxPermSize=128m
-Djava.rmi.server.hostname=172.16.43.166 -Dcom.sun.management.jmxremote.port=8006 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
-XX:+AggressiveOpts
-XX:+UseBiasedLocking
-XX:+UseTLAB

-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:+CMSClassUnloadingEnabled
-XX:-UseGCOverheadLimit
-XX:+ExplicitGCInvokesConcurrent
-XX:+UseCMSCompactAtFullCollection
-XX:CMSFullGCsBeforeCompaction=5
-XX:MaxDirectMemorySize=512m

-XX:+PrintGC
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-XX:+PrintHeapAtGC
-XX:+PrintGCApplicationStoppedTime
-XX:+PrintGCApplicationConcurrentTime
-Xloggc:/app/dump/gc2.txt
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/app/dump/oom2.txt'



正是环境调优后:

【管理平台】
JAVA_OPTS='
-server
-Xms2g -Xmx2g -Xmn768m -Xss256k
-XX:PermSize=64m
-XX:MaxPermSize=128m
-XX:+AggressiveOpts
-XX:+UseBiasedLocking
-XX:+UseTLAB

-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:+CMSClassUnloadingEnabled
-XX:-UseGCOverheadLimit
-XX:+ExplicitGCInvokesConcurrent
-XX:+UseCMSCompactAtFullCollection
-XX:CMSFullGCsBeforeCompaction=5
-XX:MaxDirectMemorySize=512m

-XX:+PrintGC
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-XX:+PrintHeapAtGC
-XX:+PrintGCApplicationStoppedTime
-XX:+PrintGCApplicationConcurrentTime
-Xloggc:/app/JACMS_ORACLE1_interface/dump/gc2.txt
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/app/JACMS_ORACLE1_interface/dump/oom2.txt'



jconsole开启:

Djava.rmi.server.hostname=172.16.43.166 -Dcom.sun.management.jmxremote.port=8006 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false

开启jconsoloe的命令:cmd -- jconsole

你可能感兴趣的:(JVM性能调优)