JVM调优参数
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JVM调优参数相关的知识,希望对你有一定的参考价值。
java -server
-Xmx10g
-Xms10g
-Xmn4g
-XX:PermSize=128M
-XX:MaxPermSize=384m
-XX:MaxTenuringThreshold=6
-XX:+HeapDumpOnOutOfMemoryError
-XX:CMSMaxAbortablePrecleanTime=20
-XX:HeapDumpPath=/tmp/eim/
-Dsun.lang.ClassLoader.allowArraySyntax=true
-Dcom.sun.management.jmxremote.port=22222
-Dcom.sun.management.jmxremote.authenticate=true
-Dcom.sun.management.jmxremote.password.file=/usr/local/jdk/jre/lib/management/jmxremote.password
-Dcom.sun.management.jmxremote.ssl=false
-Djava.net.preferIPv4Stack=true
-Dcom.sun.management.snmp.interface=192.168.0.63
-Dcom.sun.management.snmp.port=1161
-DMONGO.POOLSIZE=30
-verbose:gc
-Xloggc:/usr/local/osgi/default-gcCMS11_eim1_2013-06-24.log
-XX:+PrintGCTimeStamps
-XX:+PrintGCDetails
-XX:+PrintTenuringDistribution
-XX:+UseConcMarkSweepGC
-XX:+UseCMSCompactAtFullCollection
-XX:+CMSParallelRemarkEnabled
-XX:CMSInitiatingOccupancyFraction=60
-XX:+UseParNewGC
-Dosgi.configuration.area=. ServerStarter
-Xmx10g
-Xms10g
-Xmn4g
-XX:PermSize=128M
-XX:MaxPermSize=384m
-XX:MaxTenuringThreshold=6
-XX:+HeapDumpOnOutOfMemoryError
-XX:CMSMaxAbortablePrecleanTime=20
-XX:HeapDumpPath=/tmp/eim/
-Dsun.lang.ClassLoader.allowArraySyntax=true
-Dcom.sun.management.jmxremote.port=22222
-Dcom.sun.management.jmxremote.authenticate=true
-Dcom.sun.management.jmxremote.password.file=/usr/local/jdk/jre/lib/management/jmxremote.password
-Dcom.sun.management.jmxremote.ssl=false
-Djava.net.preferIPv4Stack=true
-Dcom.sun.management.snmp.interface=192.168.0.63
-Dcom.sun.management.snmp.port=1161
-DMONGO.POOLSIZE=30
-verbose:gc
-Xloggc:/usr/local/osgi/default-gcCMS11_eim1_2013-06-24.log
-XX:+PrintGCTimeStamps
-XX:+PrintGCDetails
-XX:+PrintTenuringDistribution
-XX:+UseConcMarkSweepGC
-XX:+UseCMSCompactAtFullCollection
-XX:+CMSParallelRemarkEnabled
-XX:CMSInitiatingOccupancyFraction=60
-XX:+UseParNewGC
-Dosgi.configuration.area=. ServerStarter
以上是关于JVM调优参数的主要内容,如果未能解决你的问题,请参考以下文章