JVM

Java 发表评论

JDK1.7版本

-Xms13g 
-Xmx13g 
-Xss512k 
-XX:PermSize=384m 
-XX:MaxPermSize=384m 
-XX:NewSize=12g 
-XX:MaxNewSize=12g 
-XX:SurvivorRatio=18
-XX:MaxDirectMemorySize=2g
-XX:+UseParNewGC 
-XX:ParallelGCThreads=4 
-XX:MaxTenuringThreshold=15
-XX:+CMSParallelRemarkEnabled 
-XX:+CMSScavengeBeforeRemark 
-XX:+UseConcMarkSweepGC
-XX:+DisableExplicitGC
-XX:+UseCMSInitiatingOccupancyOnly 
-XX:CMSInitiatingOccupancyFraction=70 
-XX:+ScavengeBeforeFullGC 
-XX:+UseCMSCompactAtFullCollection 
-XX:CMSFullGCsBeforeCompaction=9  
-XX:+CMSClassUnloadingEnabled  
-XX:CMSInitiatingPermOccupancyFraction=70 
-XX:+ExplicitGCInvokesConcurrent  
-XX:+PrintGCDetails 
-XX:+PrintGCDateStamps 
-XX:+PrintGCApplicationConcurrentTime 
-XX:+PrintHeapAtGC 
-Xloggc:/data/applogs/heap_trace.txt 
-XX:-HeapDumpOnOutOfMemoryError 
-XX:HeapDumpPath=/data/applogs/HeapDumpOnOutOfMemoryError

JDK 1.8

-Xms13g 
-Xmx13g 
-Xss512k 
-XX:MetaspaceSize=384m 
-XX:MaxMetaspaceSize=384m 
-XX:NewSize=11g 
-XX:MaxNewSize=11g 
-XX:SurvivorRatio=18 
-XX:MaxDirectMemorySize=2g 
-XX:+UseParNewGC 
-XX:ParallelGCThreads=4 
-XX:MaxTenuringThreshold=15 
-XX:+UseConcMarkSweepGC 
-XX:+DisableExplicitGC 
-XX:+UseCMSInitiatingOccupancyOnly 
-XX:+ScavengeBeforeFullGC 
-XX:+CMSScavengeBeforeRemark 
-XX:+CMSParallelRemarkEnabled 
-XX:CMSInitiatingOccupancyFraction=70 
-XX:+CMSClassUnloadingEnabled 
-XX:SoftRefLRUPolicyMSPerMB=0 
-XX:-ReduceInitialCardMarks 
-XX:+CMSClassUnloadingEnabled 
-XX:+ExplicitGCInvokesConcurrent 
-XX:+PrintGCDetails 
-XX:+PrintGCDateStamps 
-XX:+PrintGCApplicationConcurrentTime 
-XX:+PrintHeapAtGC 
-Xloggc:/data/applogs/heap_trace.txt 
-XX:-HeapDumpOnOutOfMemoryError 
-XX:HeapDumpPath=/data/applogs/HeapDumpOnOutOfMemoryError

上一篇:
下一篇:

发表评论

电子邮件地址不会被公开。 必填项已用*标注

昵称 *