使用指定内存启动

nohup java -jar -Xms512m -Xmx1G -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1MaxNewSizePercent=30 -XX:+DisableExplicitGC -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=oom-error_gateway.log -Xloggc:gc_log_gateway.log yly-gateway-0.0.4-SNAPSHOT.jar &

你可能感兴趣的:(java,java,jvm,jar)