Commit 2163b674 authored by 智勇's avatar 智勇

调大smart java内存

parent 759d806f
......@@ -35,6 +35,7 @@ source ~/.bashrc
# source ~/.bash_profile
basicCmd="java -Xmx512m -XX:CompressedClassSpaceSize=128m -Xloggc:/tmp/${module_name}_gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Dtest=true"
basicRichCmd="java -Xmx1024m -XX:CompressedClassSpaceSize=128m -Xloggc:/tmp/${module_name}_gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Dtest=true"
debugCmd="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
apolloCmd="-Denv=dev -Didc=k8s -DNAMESPACE=${namespace} -Dapollo.longPollingInitialDelayInMills=200000"
apolloMockCmd="-Denv=dev -Didc=k8s-mock -DNAMESPACE=${namespace} -Dapollo.longPollingInitialDelayInMills=200000"
......@@ -49,12 +50,15 @@ if [[ $SYSTEM_NAME == 'gu-bei' || $SYSTEM_NAME == 'clotho' ]]; then
else
finalCmd="$basicCmd $debugCmd $apolloCmd $jarCmd --spring.config.location=${config_path}"
fi
elif [[ $SYSTEM_NAME == 'gateway-mgmt' || $SYSTEM_NAME == 'gateway-web' || $SYSTEM_NAME == 'comment-service-impl' || $SYSTEM_NAME == 'pcm' || $SYSTEM_NAME == 'acs-batch' || $SYSTEM_NAME == 'acs-quartz' || $SYSTEM_NAME == 'acs-service' || $SYSTEM_NAME == 'acs-web' || $SYSTEM_NAME == 'app-server' || $SYSTEM_NAME == 'smart-recruitment' || $SYSTEM_NAME == 'smart-recruitment-spyder' ]]; then
elif [[ $SYSTEM_NAME == 'gateway-mgmt' || $SYSTEM_NAME == 'gateway-web' || $SYSTEM_NAME == 'comment-service-impl' || $SYSTEM_NAME == 'pcm' || $SYSTEM_NAME == 'acs-batch' || $SYSTEM_NAME == 'acs-quartz' || $SYSTEM_NAME == 'acs-service' || $SYSTEM_NAME == 'acs-web' || $SYSTEM_NAME == 'app-server' || $SYSTEM_NAME == 'smart-recruitment' ]]; then
# 不能指定config.location
finalCmd="$basicCmd $debugCmd $apolloCmd $jarCmd"
elif [[ $SYSTEM_NAME == 'xyqb-mall' ]]; then
# xyqb-mall打印调试信息
finalCmd="$basicCmd $debugCmd $logCmd $apolloCmd $jarCmd --spring.config.location=${config_path}"
elif [[ $SYSTEM_NAME == 'smart-recruitment-spyder' ]]; then
# 调大内存限制
finalCmd="$basicRichCmd $debugCmd $apolloCmd $jarCmd"
else
finalCmd="$basicCmd $debugCmd $apolloCmd $jarCmd --spring.config.location=${config_path}"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment