自测一组参数,记录如下:
JAVA_OPTS="-Xmx4g -Xms4g -Xmn2g -XX:PermSize=256M -XX:MaxPermSize=256M -Xss256K -XX:+DisableExplicitGC -XX:SurvivorRatio=4 -XX:+UseConcMarkSweepGC -XX:CMSFullGCsBeforeCompaction=25 -XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=4 -XX:+PrintGCDetails -Xloggc:/xx/xx/xx/xx/gc.log -Djava.rmi.server.hostname=172.16.41.3 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=60101 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.security.egd=file:/dev/../dev/urandom"