-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjava启动参数配置
36 lines (36 loc) · 2.34 KB
/
java启动参数配置
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
36
/usr/local/java/jdk1.8.0_131/bin/java -jar -server -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/spb_zcmweb/8103/dump/heap/
-Djava.io.tmpdir=/data/spb_zcmweb/8103/tmp/
-Dserver.port=8103
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=5103
-Dcom.sun.management.jmxremote.rmi.port=6103
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.access.file=/usr/local/java/jdk1.8.0_131/jre/lib/management/jmxremote.access
-Xmx2G -Xms2G -XX:+DisableExplicitGC -verbose:gc -Xloggc:/data/spb_zcmweb/8103/log/gc.%t.log -XX:+PrintHeapAtGC -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCTaskTimeStamps -XX:+PrintGCDetails -XX:+PrintGCDateStamps
-Dserver.connection-timeout=60000
-Dserver.tomcat.accept-count=1000
-Dserver.tomcat.max-threads=300
-Dserver.tomcat.min-spare-threads=65
-Dserver.tomcat.accesslog.enabled=false
-Dserver.tomcat.accesslog.directory=/data/spb_zcmweb/8103/log/
-Dserver.tomcat.accesslog.prefix=access_log
-Dserver.tomcat.accesslog.pattern=combine
-Dserver.tomcat.accesslog.suffix=.log
-Dserver.tomcat.accesslog.rotate=true
-Dserver.tomcat.accesslog.rename-on-rotate=true
-Dserver.tomcat.accesslog.request-attributes-enabled=true
-Dserver.tomcat.accesslog.buffered=true
-XX:NewRatio=4 -XX:SurvivorRatio=30 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8 -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -XX:ParallelGCThreads=24 -XX:ConcGCThreads=24 -XX:-UseGCOverheadLimit -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSFullGCsBeforeCompaction=1 -XX:+CMSParallelRemarkEnabled -XX:+CMSScavengeBeforeRemark -XX:+ParallelRefProcEnabled -XX:+UseCMSCompactAtFullCollection -XX:CMSMaxAbortablePrecleanTime=6000 -XX:CompileThreshold=10 -XX:MaxInlineSize=1024 -Dsun.net.client.defaultConnectTimeout=60000
-Dsun.net.client.defaultReadTimeout=60000
-Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.ttl=300
-Djsse.enableCBCProtection=false
-Djava.security.egd=file:/dev/./urandom
-Dfile.encoding=UTF-8
-Dlog.path=/data/spb_zcmweb/8103/log/
-Dspring.profiles.active=online
/data/spb_zcmweb/8103/deploy/zcmweb.jar zcmweb
上面是所有的配置
下面是说明
java -server -Xms2G -Xmx2G -jar --server.port=8902
java -jar -Dserver.port=8080 springBoot-kibana-1.0.0-SNAPSHOT.jar