...
|
...
|
@@ -64,12 +64,12 @@ if [ $PRODUCTION_MODE = "PRODUCT" ]; then |
|
|
str=`file $JAVA_HOME/bin/java | grep 64-bit`
|
|
|
if [ -n "$str" ]; then
|
|
|
let memTotal=`cat /proc/meminfo |grep MemTotal|awk '{printf "%d", $2/1024 }'`
|
|
|
if [ $memTotal -gt 10000 ];then
|
|
|
if [ $memTotal -gt 6000 ];then
|
|
|
#JAVA_MEM_OPTS=" -server -XX:+UseG1GC -Xmx3G -XX:MaxGCPauseMillis=50 -Xloggc:/Data/logs/gateway/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps "
|
|
|
JAVA_MEM_OPTS=" -server -XX:+UseG1GC -Xmx2G -XX:MaxGCPauseMillis=10 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=15 -XX:G1MaxNewSizePercent=30 -XX:SurvivorRatio=6 -XX:InitiatingHeapOccupancyPercent=30 -XX:G1MixedGCLiveThresholdPercent=50 -XX:G1HeapWastePercent=5 -XX:+PrintGCDetails -Xloggc:$yoho.logs.basedir/gateway/gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$yoho.logs.basedir/gateway/heapdump.hprof "
|
|
|
else
|
|
|
#JAVA_MEM_OPTS=" -server -XX:+UseG1GC -Xmx2G -XX:MaxGCPauseMillis=50 -Xloggc:/Data/logs/gateway/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps "
|
|
|
JAVA_MEM_OPTS=" -server -XX:+UseG1GC -Xmx2G -XX:MaxGCPauseMillis=10 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=15 -XX:G1MaxNewSizePercent=30 -XX:SurvivorRatio=6 -XX:InitiatingHeapOccupancyPercent=30 -XX:G1MixedGCLiveThresholdPercent=50 -XX:G1HeapWastePercent=5 -XX:+PrintGCDetails -Xloggc:$yoho.logs.basedir/gateway/gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$yoho.logs.basedir/gateway/heapdump.hprof "
|
|
|
JAVA_MEM_OPTS=" -server -XX:+UseG1GC -Xmx1G -XX:MaxGCPauseMillis=10 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=15 -XX:G1MaxNewSizePercent=30 -XX:SurvivorRatio=6 -XX:InitiatingHeapOccupancyPercent=30 -XX:G1MixedGCLiveThresholdPercent=50 -XX:G1HeapWastePercent=5 -XX:+PrintGCDetails -Xloggc:$yoho.logs.basedir/gateway/gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$yoho.logs.basedir/gateway/heapdump.hprof "
|
|
|
fi
|
|
|
else
|
|
|
JAVA_MEM_OPTS=" -server -XX:+UseG1GC -Xmx3G -XX:MaxGCPauseMillis=50 -Xloggc:/Data/logs/gateway/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps "
|
...
|
...
|
|