-
Notifications
You must be signed in to change notification settings - Fork 5
/
jvm-params.txt
35 lines (33 loc) · 1.24 KB
/
jvm-params.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
jdk1.7及以下
nohup java
-server
-XX:+UseConcMarkSweepGC
-XX:ConcGCThreads=2
-XX:ParallelCMSThreads=2
-XX:CMSInitiatingOccupancyFraction=60
-XX:+UseCMSCompactAtFullCollection
-XX:CMSFullGCsBeforeCompaction=2
-XX:+CMSParallelRemarkEnabled
-XX:+CMSIncrementalMode
-Xms4086m -Xmx6144m -Xmn1536m
-Djava.rmi.server.hostname=ip -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9596
-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dfile.encoding=utf-8
-jar xxxx.jar &
jdk1.8
nohup java
-server
-XX:+UseG1GC
-XX:InitiatingHeapOccupancyPercent=0
-Xms4086m -Xmx6144m
-Djava.rmi.server.hostname=ip -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9596
-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dfile.encoding=utf-8
-jar xxxx.jar &
jdk-11
nohup java
-server
-XX:+UnlockExperimentalVMOptions -XX:+UseZGC
-Xlog:age*,gc*=info:file=gc-%t.log:time,tid,tags:filecount=3,filesize=20m -Djava.io.tmpdir=/tmp
-Xms4086m -Xmx6144m
-Djava.rmi.server.hostname=ip -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9596
-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dfile.encoding=utf-8
-jar xxxx.jar &