Browse Source

jvm内存改小点

master
nili 1 year ago
parent
commit
3730cf7d34
  1. 2
      run

2
run

@ -17,4 +17,4 @@ rm -rf jar
mkdir jar mkdir jar
cp $targetdir/$jar jar/ cp $targetdir/$jar jar/
java -server -Xmx1G -Xms1G -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -verbose:gc -Xlog:gc*:logs/gc.log:time,l,tg:filecount=7,filesize=16M -jar jar/$jar --spring.profiles.active=$profile > run.log 2>&1 & echo $! > pid java -server -Xmx512m -Xms512m -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -verbose:gc -Xlog:gc*:logs/gc.log:time,l,tg:filecount=7,filesize=16M -jar jar/$jar --spring.profiles.active=$profile > run.log 2>&1 & echo $! > pid

Loading…
Cancel
Save