diff --git a/zheng-api/zheng-api-rpc-service/src/main/assembly/assembly.xml b/zheng-api/zheng-api-rpc-service/src/main/assembly/assembly.xml index 8f76a91e..afd9f75d 100644 --- a/zheng-api/zheng-api-rpc-service/src/main/assembly/assembly.xml +++ b/zheng-api/zheng-api-rpc-service/src/main/assembly/assembly.xml @@ -10,6 +10,11 @@ bin 0755 + + src/main/assembly/conf + conf + 0644 + diff --git a/zheng-api/zheng-api-rpc-service/src/main/assembly/bin/start.sh b/zheng-api/zheng-api-rpc-service/src/main/assembly/bin/start.sh index 132d60a0..e9154f02 100644 --- a/zheng-api/zheng-api-rpc-service/src/main/assembly/bin/start.sh +++ b/zheng-api/zheng-api-rpc-service/src/main/assembly/bin/start.sh @@ -56,11 +56,11 @@ if [ "$1" = "jmx" ]; then fi JAVA_MEM_OPTS="" BITS=`java -version 2>&1 | grep -i 64-bit` -if [ -n "$BITS" ]; then - JAVA_MEM_OPTS=" -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 " -else - JAVA_MEM_OPTS=" -server -Xms1g -Xmx1g -XX:PermSize=128m -XX:SurvivorRatio=2 -XX:+UseParallelGC " -fi +#if [ -n "$BITS" ]; then +# JAVA_MEM_OPTS=" -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 " +#else +# JAVA_MEM_OPTS=" -server -Xms1g -Xmx1g -XX:PermSize=128m -XX:SurvivorRatio=2 -XX:+UseParallelGC " +#fi echo -e "Starting the $SERVER_NAME ...\c" nohup java $JAVA_OPTS $JAVA_MEM_OPTS $JAVA_DEBUG_OPTS $JAVA_JMX_OPTS -classpath $CONF_DIR:$LIB_JARS com.alibaba.dubbo.container.Main > $STDOUT_FILE 2>&1 & diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/assembly/assembly.xml b/zheng-cms/zheng-cms-rpc-service/src/main/assembly/assembly.xml index 8f76a91e..afd9f75d 100644 --- a/zheng-cms/zheng-cms-rpc-service/src/main/assembly/assembly.xml +++ b/zheng-cms/zheng-cms-rpc-service/src/main/assembly/assembly.xml @@ -10,6 +10,11 @@ bin 0755 + + src/main/assembly/conf + conf + 0644 + diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/assembly/bin/start.sh b/zheng-cms/zheng-cms-rpc-service/src/main/assembly/bin/start.sh index 132d60a0..e9154f02 100644 --- a/zheng-cms/zheng-cms-rpc-service/src/main/assembly/bin/start.sh +++ b/zheng-cms/zheng-cms-rpc-service/src/main/assembly/bin/start.sh @@ -56,11 +56,11 @@ if [ "$1" = "jmx" ]; then fi JAVA_MEM_OPTS="" BITS=`java -version 2>&1 | grep -i 64-bit` -if [ -n "$BITS" ]; then - JAVA_MEM_OPTS=" -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 " -else - JAVA_MEM_OPTS=" -server -Xms1g -Xmx1g -XX:PermSize=128m -XX:SurvivorRatio=2 -XX:+UseParallelGC " -fi +#if [ -n "$BITS" ]; then +# JAVA_MEM_OPTS=" -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 " +#else +# JAVA_MEM_OPTS=" -server -Xms1g -Xmx1g -XX:PermSize=128m -XX:SurvivorRatio=2 -XX:+UseParallelGC " +#fi echo -e "Starting the $SERVER_NAME ...\c" nohup java $JAVA_OPTS $JAVA_MEM_OPTS $JAVA_DEBUG_OPTS $JAVA_JMX_OPTS -classpath $CONF_DIR:$LIB_JARS com.alibaba.dubbo.container.Main > $STDOUT_FILE 2>&1 & diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/assembly/conf/dubbo.properties b/zheng-cms/zheng-cms-rpc-service/src/main/assembly/conf/dubbo.properties new file mode 100644 index 00000000..6553b51c --- /dev/null +++ b/zheng-cms/zheng-cms-rpc-service/src/main/assembly/conf/dubbo.properties @@ -0,0 +1,3 @@ +#dubbo.application.name=zheng-cms-rpc-service +#dubbo.registry.address=zookeeper://127.0.0.1:2181 +#dubbo.protocol.port=20882 \ No newline at end of file diff --git a/zheng-demo/zheng-demo-rpc-service/src/main/assembly/bin/start.sh b/zheng-demo/zheng-demo-rpc-service/src/main/assembly/bin/start.sh index 132d60a0..e9154f02 100644 --- a/zheng-demo/zheng-demo-rpc-service/src/main/assembly/bin/start.sh +++ b/zheng-demo/zheng-demo-rpc-service/src/main/assembly/bin/start.sh @@ -56,11 +56,11 @@ if [ "$1" = "jmx" ]; then fi JAVA_MEM_OPTS="" BITS=`java -version 2>&1 | grep -i 64-bit` -if [ -n "$BITS" ]; then - JAVA_MEM_OPTS=" -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 " -else - JAVA_MEM_OPTS=" -server -Xms1g -Xmx1g -XX:PermSize=128m -XX:SurvivorRatio=2 -XX:+UseParallelGC " -fi +#if [ -n "$BITS" ]; then +# JAVA_MEM_OPTS=" -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 " +#else +# JAVA_MEM_OPTS=" -server -Xms1g -Xmx1g -XX:PermSize=128m -XX:SurvivorRatio=2 -XX:+UseParallelGC " +#fi echo -e "Starting the $SERVER_NAME ...\c" nohup java $JAVA_OPTS $JAVA_MEM_OPTS $JAVA_DEBUG_OPTS $JAVA_JMX_OPTS -classpath $CONF_DIR:$LIB_JARS com.alibaba.dubbo.container.Main > $STDOUT_FILE 2>&1 & diff --git a/zheng-demo/zheng-demo-rpc-service/src/main/assembly/conf/dubbo.properties b/zheng-demo/zheng-demo-rpc-service/src/main/assembly/conf/dubbo.properties index bbb9e15b..34d80af5 100644 --- a/zheng-demo/zheng-demo-rpc-service/src/main/assembly/conf/dubbo.properties +++ b/zheng-demo/zheng-demo-rpc-service/src/main/assembly/conf/dubbo.properties @@ -1,28 +1,3 @@ -## -# Copyright 1999-2011 Alibaba Group. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -## -dubbo.container=log4j,spring -dubbo.application.name=zheng-demo-rpc-service -dubbo.application.owner= -#dubbo.registry.address=multicast://224.5.6.7:1234 -dubbo.registry.address=zookeeper://127.0.0.1:2181 -#dubbo.registry.address=redis://127.0.0.1:6379 -#dubbo.registry.address=dubbo://127.0.0.1:9090 -dubbo.monitor.protocol=registry -dubbo.protocol.name=dubbo -dubbo.protocol.port=20880 -dubbo.service.loadbalance=roundrobin -dubbo.log4j.file=logs/zheng-demo-rpc-service.log -dubbo.log4j.level=WARN \ No newline at end of file +#dubbo.application.name=zheng-pay-rpc-service +#dubbo.registry.address=zookeeper://127.0.0.1:2181 +#dubbo.protocol.port=20883 \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-service/src/main/assembly/assembly.xml b/zheng-pay/zheng-pay-rpc-service/src/main/assembly/assembly.xml index 8f76a91e..afd9f75d 100644 --- a/zheng-pay/zheng-pay-rpc-service/src/main/assembly/assembly.xml +++ b/zheng-pay/zheng-pay-rpc-service/src/main/assembly/assembly.xml @@ -10,6 +10,11 @@ bin 0755 + + src/main/assembly/conf + conf + 0644 + diff --git a/zheng-pay/zheng-pay-rpc-service/src/main/assembly/bin/start.sh b/zheng-pay/zheng-pay-rpc-service/src/main/assembly/bin/start.sh index 132d60a0..e9154f02 100644 --- a/zheng-pay/zheng-pay-rpc-service/src/main/assembly/bin/start.sh +++ b/zheng-pay/zheng-pay-rpc-service/src/main/assembly/bin/start.sh @@ -56,11 +56,11 @@ if [ "$1" = "jmx" ]; then fi JAVA_MEM_OPTS="" BITS=`java -version 2>&1 | grep -i 64-bit` -if [ -n "$BITS" ]; then - JAVA_MEM_OPTS=" -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 " -else - JAVA_MEM_OPTS=" -server -Xms1g -Xmx1g -XX:PermSize=128m -XX:SurvivorRatio=2 -XX:+UseParallelGC " -fi +#if [ -n "$BITS" ]; then +# JAVA_MEM_OPTS=" -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 " +#else +# JAVA_MEM_OPTS=" -server -Xms1g -Xmx1g -XX:PermSize=128m -XX:SurvivorRatio=2 -XX:+UseParallelGC " +#fi echo -e "Starting the $SERVER_NAME ...\c" nohup java $JAVA_OPTS $JAVA_MEM_OPTS $JAVA_DEBUG_OPTS $JAVA_JMX_OPTS -classpath $CONF_DIR:$LIB_JARS com.alibaba.dubbo.container.Main > $STDOUT_FILE 2>&1 & diff --git a/zheng-pay/zheng-pay-rpc-service/src/main/assembly/conf/dubbo.properties b/zheng-pay/zheng-pay-rpc-service/src/main/assembly/conf/dubbo.properties new file mode 100644 index 00000000..34d80af5 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-service/src/main/assembly/conf/dubbo.properties @@ -0,0 +1,3 @@ +#dubbo.application.name=zheng-pay-rpc-service +#dubbo.registry.address=zookeeper://127.0.0.1:2181 +#dubbo.protocol.port=20883 \ No newline at end of file diff --git a/zheng-ucenter/zheng-ucenter-rpc-service/src/main/assembly/assembly.xml b/zheng-ucenter/zheng-ucenter-rpc-service/src/main/assembly/assembly.xml index 8f76a91e..afd9f75d 100644 --- a/zheng-ucenter/zheng-ucenter-rpc-service/src/main/assembly/assembly.xml +++ b/zheng-ucenter/zheng-ucenter-rpc-service/src/main/assembly/assembly.xml @@ -10,6 +10,11 @@ bin 0755 + + src/main/assembly/conf + conf + 0644 + diff --git a/zheng-ucenter/zheng-ucenter-rpc-service/src/main/assembly/bin/start.sh b/zheng-ucenter/zheng-ucenter-rpc-service/src/main/assembly/bin/start.sh index 132d60a0..e9154f02 100644 --- a/zheng-ucenter/zheng-ucenter-rpc-service/src/main/assembly/bin/start.sh +++ b/zheng-ucenter/zheng-ucenter-rpc-service/src/main/assembly/bin/start.sh @@ -56,11 +56,11 @@ if [ "$1" = "jmx" ]; then fi JAVA_MEM_OPTS="" BITS=`java -version 2>&1 | grep -i 64-bit` -if [ -n "$BITS" ]; then - JAVA_MEM_OPTS=" -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 " -else - JAVA_MEM_OPTS=" -server -Xms1g -Xmx1g -XX:PermSize=128m -XX:SurvivorRatio=2 -XX:+UseParallelGC " -fi +#if [ -n "$BITS" ]; then +# JAVA_MEM_OPTS=" -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 " +#else +# JAVA_MEM_OPTS=" -server -Xms1g -Xmx1g -XX:PermSize=128m -XX:SurvivorRatio=2 -XX:+UseParallelGC " +#fi echo -e "Starting the $SERVER_NAME ...\c" nohup java $JAVA_OPTS $JAVA_MEM_OPTS $JAVA_DEBUG_OPTS $JAVA_JMX_OPTS -classpath $CONF_DIR:$LIB_JARS com.alibaba.dubbo.container.Main > $STDOUT_FILE 2>&1 & diff --git a/zheng-ucenter/zheng-ucenter-rpc-service/src/main/assembly/conf/dubbo.properties b/zheng-ucenter/zheng-ucenter-rpc-service/src/main/assembly/conf/dubbo.properties new file mode 100644 index 00000000..7c6ed723 --- /dev/null +++ b/zheng-ucenter/zheng-ucenter-rpc-service/src/main/assembly/conf/dubbo.properties @@ -0,0 +1,3 @@ +#dubbo.application.name=zheng-ucenter-rpc-service +#dubbo.registry.address=zookeeper://127.0.0.1:2181 +#dubbo.protocol.port=20884 \ No newline at end of file diff --git a/zheng-upms/zheng-upms-rpc-service/src/main/assembly/assembly.xml b/zheng-upms/zheng-upms-rpc-service/src/main/assembly/assembly.xml index 8f76a91e..afd9f75d 100644 --- a/zheng-upms/zheng-upms-rpc-service/src/main/assembly/assembly.xml +++ b/zheng-upms/zheng-upms-rpc-service/src/main/assembly/assembly.xml @@ -10,6 +10,11 @@ bin 0755 + + src/main/assembly/conf + conf + 0644 + diff --git a/zheng-upms/zheng-upms-rpc-service/src/main/assembly/bin/start.sh b/zheng-upms/zheng-upms-rpc-service/src/main/assembly/bin/start.sh index 132d60a0..e9154f02 100644 --- a/zheng-upms/zheng-upms-rpc-service/src/main/assembly/bin/start.sh +++ b/zheng-upms/zheng-upms-rpc-service/src/main/assembly/bin/start.sh @@ -56,11 +56,11 @@ if [ "$1" = "jmx" ]; then fi JAVA_MEM_OPTS="" BITS=`java -version 2>&1 | grep -i 64-bit` -if [ -n "$BITS" ]; then - JAVA_MEM_OPTS=" -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 " -else - JAVA_MEM_OPTS=" -server -Xms1g -Xmx1g -XX:PermSize=128m -XX:SurvivorRatio=2 -XX:+UseParallelGC " -fi +#if [ -n "$BITS" ]; then +# JAVA_MEM_OPTS=" -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 " +#else +# JAVA_MEM_OPTS=" -server -Xms1g -Xmx1g -XX:PermSize=128m -XX:SurvivorRatio=2 -XX:+UseParallelGC " +#fi echo -e "Starting the $SERVER_NAME ...\c" nohup java $JAVA_OPTS $JAVA_MEM_OPTS $JAVA_DEBUG_OPTS $JAVA_JMX_OPTS -classpath $CONF_DIR:$LIB_JARS com.alibaba.dubbo.container.Main > $STDOUT_FILE 2>&1 & diff --git a/zheng-upms/zheng-upms-rpc-service/src/main/assembly/conf/dubbo.properties b/zheng-upms/zheng-upms-rpc-service/src/main/assembly/conf/dubbo.properties new file mode 100644 index 00000000..c26ef3a7 --- /dev/null +++ b/zheng-upms/zheng-upms-rpc-service/src/main/assembly/conf/dubbo.properties @@ -0,0 +1,3 @@ +#dubbo.application.name=zheng-upms-rpc-service +#dubbo.registry.address=zookeeper://127.0.0.1:2181 +#dubbo.protocol.port=20881 \ No newline at end of file