Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

 

一、设置JVM参数

编辑: /opt/maco/tomcat8/catalina.sh   修改  JAVA_OPTS 如下:

JAVA_OPTS="-Xms5g -Xmx5g -Xmn2g -server -XX:+UseG1GC -XX:-UseCompressedOops -XX:+HeapDumpOnOutOfMemoryError -XX:MaxDirectMemorySize=500M -Djava.security.egd=file:/dev/./urandom"

注意: -Xms 与 -Xmx 设置为物理内存的40%,   -Xmn设置为-Xmx的40%

 

二、调整vm.max_map_count

检查vm.max_map_count值
sysctl vm.max_map_count
设置
sysctl -w vm.max_map_count=131072

 

 

 

 

 

  • No labels