Jvm parameter instance

  jvm

Use G1


java -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=192.168.2.215 -Dcom.sun.management.jmxremote.port=1098 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.access.file=jmxremote.access -Dcom.sun.management.jmxremote.password.file=jmxremote.password -server -Xmx512m -Xms512m -XX:PermSize=128m -XX:MaxPermSize=256m  -XX:+DisableExplicitGC -XX:+UnlockExperimentalVMOptions  -XX:+UseG1GC -XX:MaxGCPauseMillis=10 -XX:GCPauseIntervalMillis=200 -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/root/logs/dumps  -Xloggc:/root/logs/gc/gc-$(date +%Y%m%d-%H%M%S).log -jar start.jar 

Use cms


java -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=192.168.2.215 -Dcom.sun.management.jmxremote.port=1098 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.access.file=jmxremote.access -Dcom.sun.management.jmxremote.password.file=jmxremote.password -server -Xmx512m -Xms512m -XX:PermSize=128m -XX:MaxPermSize=256m  -XX:+DisableExplicitGC  -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+PrintGCDetails -XX:+PrintTenuringDistribution -XX:+PrintGCTimeStamps -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/root/logs/dumps  -Xloggc:/root/logs/gc/gc-$(date +%Y%m%d-%H%M%S).log -jar start.jar

Use serial


java -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=192.168.2.215 -Dcom.sun.management.jmxremote.port=1098 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.access.file=jmxremote.access -Dcom.sun.management.jmxremote.password.file=jmxremote.password -server -Xmx512m -Xms512m -XX:PermSize=128m -XX:MaxPermSize=256m  -XX:+DisableExplicitGC  -XX:+UseSerialGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/root/logs/dumps  -Xloggc:/root/logs/gc/gc-$(date +%Y%m%d-%H%M%S).log -jar start.jar