为什么在Nacos定义了JAVA_OPT=-Xms4g -Xmx4g -Xmn512m 结果还是xmx=1g? + export CUSTOM_SEARCH_NAMES=application + CUSTOM_SEARCH_NAMES=application + export CUSTOM_SEARCH_LOCATIONS=file:/home/nacos/conf/ + CUSTOM_SEARCH_LOCATIONS=file:/home/nacos/conf/ + export MEMBER_LIST= + MEMBER_LIST= + PLUGINS_DIR=/home/nacos/plugins/peer-finder + [[ cluster == \s\t\a\n\d\a\l\o\n\e ]] + [[ '' == \e\m\b\e\d\d\e\d ]] + JAVA_OPT='-Xms4g -Xmx4g -Xmn512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -server -Xms1g -Xmx1g -Xmn512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m' + [[ n == \y ]] + JAVA_OPT='-Xms4g -Xmx4g -Xmn512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -server -Xms1g -Xmx1g -Xmn512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/nacos/logs/java_heapdump.hprof' + JAVA_OPT='-Xms4g -Xmx4g -Xmn512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -server -Xms1g -Xmx1g -Xmn512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/nacos/logs/java_heapdump.hprof -XX:-UseLargePages' + print_servers + [[ ! -d /home/nacos/plugins/peer-finder ]] + echo '' + for server in ${NACOS_SERVERS} + echo cmdc-nacos-0.cmdc-nacos.default.svc.cluster.local:8848,cmdc-nacos-1.cmdc-nacos.default.svc.cluster.local:8848,cmdc-nacos-2.cmdc-nacos.default.svc.cluster.local:8848 + [[ all == \c\o\n\f\i\g ]] + [[ all == \n\a\m\i\n\g ]] + [[ ! -z '' ]] + [[ ! -z '' ]] + [[ ! -z '' ]] + [[ ! -z '' ]] + [[ ! -z '' ]] + [[ hostname == \h\o\s\t\n\a\m\e ]] + JAVA_OPT='-Xms4g -Xmx4g -Xmn512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -server -Xms1g -Xmx1g -Xmn512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/nacos/logs/java_heapdump.hprof -XX:-UseLargePages -Dnacos.preferHostnameOverIp=true' + JAVA_OPT='-Xms4g -Xmx4g -Xmn512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -server -Xms1g -Xmx1g -Xmn512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/nacos/logs/java_heapdump.hprof -XX:-UseLargePages -Dnacos.preferHostnameOverIp=true -Dnacos.member.list=' ++ /usr/local/openjdk-8/bin/java -version ++ sed -E -n 's/.* version "([0-9]).$/\1/p' + JAVA_MAJOR_VERSION=1 + [[ 1 -ge 9 ]] + JAVA_OPT_EXT_FIX=-Djava.ext.dirs=/usr/local/openjdk-8/jre/lib/ext:/usr/local/openjdk-8/lib/ext + JAVA_OPT='-Xms4g -Xmx4g -Xmn512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -server -Xms1g -Xmx1g -Xmn512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/nacos/logs/java_heapdump.hprof -XX:-UseLargePages -Dnacos.preferHostnameOverIp=true -Dnacos.member.list= -Xloggc:/home/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSi
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。