吞吐量是啥
http://openjdk.java.net/jeps/333
https://www.bilibili.com/video/BV1Hy4y1v7WU
参数案例
延迟优先场景
工程 sporthealth-server 的角色是网关,承接公网的流量并通过 RPC、MQ 等方式
-Dorg.jboss.logging.provider=slf4j -Xms8g -Xmx8g -Xss512k -XX:+UseG1GC -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:/home/service/gc-%t.log -Djava.io.tmpdir=/home/service/app/sporthealth-server/mzvlgrywh4cq/sporthealth-server_20210531151756/bin/../tmp -DappName=sporthealth-server -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -server -classpath lib/*:conf
吞吐优先场景
-Xms5g -Xmx5g -Xss512k -XX:+UseG1GC -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:/home/service/gc-%t.log -Djava.io.tmpdir=/home/service/app/sporthealth-task/ztpvqcbwxfsk/sporthealth-task_20210601104120/bin/../tmp -DappName=sporthealth-task -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -server -classpath lib/sporthealth-task.jar:lib/sporthealth-spring-boot-starter-1.2.3-prod-20210514.124235-47.jar:conf:lib/*