Skip to content

Commit

Permalink
Update java&catalina_opts.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
superhj1987 authored Nov 2, 2016
1 parent 8c17d2d commit b44433f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tomcat/java&catalina_opts.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export JAVA_OPTS="
-XX:PermSize=500M
-XX:MaxPermSize=500M
-XX:SurvivorRatio=65536
-XX:MaxTenuringThreshold=0 #晋升到老年代需要的存活次数
-XX:MaxTenuringThreshold=0 #晋升到老年代需要的存活次数,设置为0时,survivor区失去作用,一次minor gc,eden中存活的对象就会进入老年代
-Xss256K
-Xnoclassgc
-XX:+TieredCompilation #启用多层编译
Expand All @@ -16,7 +16,7 @@ export JAVA_OPTS="
-XX:+UseConcMarkSweepGC
-XX:+UseCMSCompactAtFullCollection #是否在fullgc是做一次压缩以整理碎片,默认就是true
-XX:CMSFullGCsBeforeCompaction=0 #full gc触发压缩的次数
-XX:+CMSClassUnloadingEnabled
-XX:+CMSClassUnloadingEnabled #如果类加载不频繁,也没有大量使用String.intern防范,不建议打开此参数
-XX:-CMSParallelRemarkEnabled
-XX:CMSInitiatingOccupancyFraction=90 #触发full gc的内存使用百分比
-XX:+PrintClassHistogram
Expand Down

0 comments on commit b44433f

Please sign in to comment.