Showing
1 changed file
with
2 additions
and
2 deletions
@@ -64,12 +64,12 @@ if [ $PRODUCTION_MODE = "PRODUCT" ]; then | @@ -64,12 +64,12 @@ if [ $PRODUCTION_MODE = "PRODUCT" ]; then | ||
64 | str=`file $JAVA_HOME/bin/java | grep 64-bit` | 64 | str=`file $JAVA_HOME/bin/java | grep 64-bit` |
65 | if [ -n "$str" ]; then | 65 | if [ -n "$str" ]; then |
66 | let memTotal=`cat /proc/meminfo |grep MemTotal|awk '{printf "%d", $2/1024 }'` | 66 | let memTotal=`cat /proc/meminfo |grep MemTotal|awk '{printf "%d", $2/1024 }'` |
67 | - if [ $memTotal -gt 10000 ];then | 67 | + if [ $memTotal -gt 6000 ];then |
68 | #JAVA_MEM_OPTS=" -server -XX:+UseG1GC -Xmx3G -XX:MaxGCPauseMillis=50 -Xloggc:/Data/logs/gateway/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps " | 68 | #JAVA_MEM_OPTS=" -server -XX:+UseG1GC -Xmx3G -XX:MaxGCPauseMillis=50 -Xloggc:/Data/logs/gateway/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps " |
69 | 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 " | 69 | 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 " |
70 | else | 70 | else |
71 | #JAVA_MEM_OPTS=" -server -XX:+UseG1GC -Xmx2G -XX:MaxGCPauseMillis=50 -Xloggc:/Data/logs/gateway/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps " | 71 | #JAVA_MEM_OPTS=" -server -XX:+UseG1GC -Xmx2G -XX:MaxGCPauseMillis=50 -Xloggc:/Data/logs/gateway/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps " |
72 | - 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 " | 72 | + 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 " |
73 | fi | 73 | fi |
74 | else | 74 | else |
75 | JAVA_MEM_OPTS=" -server -XX:+UseG1GC -Xmx3G -XX:MaxGCPauseMillis=50 -Xloggc:/Data/logs/gateway/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps " | 75 | JAVA_MEM_OPTS=" -server -XX:+UseG1GC -Xmx3G -XX:MaxGCPauseMillis=50 -Xloggc:/Data/logs/gateway/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps " |
-
Please register or login to post a comment