.
This commit is contained in:
		@ -19,8 +19,18 @@
 | 
			
		||||
# Xms represents the initial size of total heap space
 | 
			
		||||
# Xmx represents the maximum size of total heap space
 | 
			
		||||
 | 
			
		||||
-Xms4g
 | 
			
		||||
-Xmx4g
 | 
			
		||||
-Xmn4G
 | 
			
		||||
-Xms8G
 | 
			
		||||
-Xmx8G
 | 
			
		||||
-XX:MaxMetaspaceSize=2G
 | 
			
		||||
-Xss2G
 | 
			
		||||
 | 
			
		||||
-Xnoclassgc
 | 
			
		||||
-XX:MaxDirectMemorySize=2G
 | 
			
		||||
 | 
			
		||||
-XX:InitialRAMPercentage=80
 | 
			
		||||
-XX:MaxRAMPercentage=80
 | 
			
		||||
-XX:MinRAMPercentage=80
 | 
			
		||||
 | 
			
		||||
################################################################
 | 
			
		||||
## Expert settings
 | 
			
		||||
@ -33,7 +43,7 @@
 | 
			
		||||
################################################################
 | 
			
		||||
 | 
			
		||||
## GC configuration
 | 
			
		||||
8-13:-XX:+UseConcMarkSweepGC
 | 
			
		||||
8-9:-XX:+UseConcMarkSweepGC
 | 
			
		||||
8-13:-XX:CMSInitiatingOccupancyFraction=75
 | 
			
		||||
8-13:-XX:+UseCMSInitiatingOccupancyOnly
 | 
			
		||||
 | 
			
		||||
@ -43,9 +53,9 @@
 | 
			
		||||
# following three lines to your version of the JDK
 | 
			
		||||
# 10-13:-XX:-UseConcMarkSweepGC
 | 
			
		||||
# 10-13:-XX:-UseCMSInitiatingOccupancyOnly
 | 
			
		||||
14-:-XX:+UseG1GC
 | 
			
		||||
14-:-XX:G1ReservePercent=25
 | 
			
		||||
14-:-XX:InitiatingHeapOccupancyPercent=30
 | 
			
		||||
11-:-XX:+UseG1GC
 | 
			
		||||
11-:-XX:G1ReservePercent=25
 | 
			
		||||
11-:-XX:InitiatingHeapOccupancyPercent=30
 | 
			
		||||
 | 
			
		||||
## JVM temporary directory
 | 
			
		||||
-Djava.io.tmpdir=${ES_TMPDIR}
 | 
			
		||||
@ -58,10 +68,10 @@
 | 
			
		||||
 | 
			
		||||
# specify an alternative path for heap dumps; ensure the directory exists and
 | 
			
		||||
# has sufficient space
 | 
			
		||||
-XX:HeapDumpPath=data
 | 
			
		||||
-XX:HeapDumpPath=/data
 | 
			
		||||
 | 
			
		||||
# specify an alternative path for JVM fatal error logs
 | 
			
		||||
-XX:ErrorFile=logs/hs_err_pid%p.log
 | 
			
		||||
-XX:ErrorFile=/var/log/hs_err_pid%p.log
 | 
			
		||||
 | 
			
		||||
## JDK 8 GC logging
 | 
			
		||||
8:-XX:+PrintGCDetails
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user