Authored by ping

update

set JAVA_MEM_OPT= -Xms1024m -Xmx1024m -XX:MaxPermSize=128m -Djava.net.preferIPv4Stack=true
set JAVA_HOME=C:/Program Files/Java/jdk1.8.0_60
set WEB_APP_HOME=$yohobuy.resources.env.webapphome
set JAVA_HOME=$yoho.env.javahome
set WEB_APP_HOME=/home/test/yohobuy-union/deploy
set CATALINA_HOME=D:/JavaTools/apache-tomcat-8.0.28
set CATALINA_BASE=$yohobuy.resources.env.webapphome/tomcat_server
rem set JAVA_DEBUG_OPT= -server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8082,server=y,suspend=n
... ...
... ... @@ -5,24 +5,24 @@
BASE_BIN_DIR=`dirname $0`
. $BASE_BIN_DIR/functions.sh
export JAVA_HOME=C:/Program Files/Java/jdk1.8.0_60
export WEB_APP_HOME=$yohobuy.resources.env.webapphome
export SERVER_PORT=0
export PRODUCTION_MODE="PRODUCT"
export SERVER_HOME=D:/JavaTools/apache-tomcat-8.0.28
export SERVER_TYPE=tomcat
export SERVER_NAMESPACE=yohobuy-resources
export JAVA_HOME=$yoho.env.javahome
export WEB_APP_HOME=/home/test/yohobuy-union/deploy
export SERVER_PORT=8
export PRODUCTION_MODE="$yoho.env.productmode"
export SERVER_HOME=$yoho.env.serverhome
export SERVER_TYPE=$yoho.env.servertype
export SERVER_NAMESPACE=unions
export SERVER_BASE_DIR=" -Dcatalina.base=$yohobuy.resources.env.webapphome/.tomcat "
export NAMING_PORT=`expr 9000 + $SERVER_PORT`
export HTTP_SERVER_PORT=`expr 8080 + $SERVER_PORT`
export DEBUG_PORT=`expr 8800 + $SERVER_PORT`
export CHECK_SERVER_STARTUP_URL="http://127.0.0.1:$HTTP_SERVER_PORT/$SERVER_NAMESPACE/common/ok.jsp"
export STARTUP_SUCCESS_MSG="Server Online Resources ok"
export JAVA_OPTS=" -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true "
export JAVA_DEBUG_OPT=" -server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=,server=y,suspend=n "
export JAVA_DEBUG_OPT=" -server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=$DEBUG_PORT,server=y,suspend=n "
export TIGER_JMX_OPT=" -Dcom.sun.management.config.file=$WEB_APP_HOME/conf/jmx/jmx_monitor_management.properties "
... ... @@ -60,6 +60,7 @@ if [ $PRODUCTION_MODE = "PRODUCT" ]; then
elif [ $PRODUCTION_MODE = "TEST" ]; then
JAVA_MEM_OPTS=" -server -Xms1024m -Xmx1024m -XX:MaxPermSize=128m -XX:SurvivorRatio=2 -XX:+UseParallelGC "
JAVA_OPTS=" $JAVA_OPTS $JAVA_MEM_OPTS "
elif [ $PRODUCTION_MODE = "DEV" ]; then
#we shuold reduce resource usage on developing mode
JAVA_MEM_OPTS=" -server -Xms64m -Xmx1024m -XX:MaxPermSize=128m "
... ...
... ... @@ -19,7 +19,7 @@
define subcomponents such as "Valves" at this level.
Documentation at /docs/config/server.html
-->
<Server port="8100" shutdown="SHUTDOWN">
<Server port="8108" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
<!-- Security listener. Documentation at /docs/config/listeners.html
<Listener className="org.apache.catalina.security.SecurityListener" />
... ... @@ -66,7 +66,7 @@
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
-->
<Connector port="8080" protocol="HTTP/1.1"
<Connector port="8088" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<!-- A "Connector" using the shared thread pool-->
... ... @@ -88,7 +88,7 @@
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8000" protocol="AJP/1.3" redirectPort="8443" />
<Connector port="8008" protocol="AJP/1.3" redirectPort="8443" />
<!-- An Engine represents the entry point (within Catalina) that processes
... ...
... ... @@ -10,4 +10,10 @@ rabbit.mq.password=yoho
rabbit.mq.virtualHost=/yoho
#激活有效期(秒)
activeTime=3600
\ No newline at end of file
activeTime=3600
zkAddress=192.168.102.162:32806
# web context
web.context=unions
\ No newline at end of file
... ...
zkAddress=192.168.102.162:32806
# web context
web.context=unions
\ No newline at end of file
... ... @@ -12,4 +12,10 @@ rabbit.mq.virtualHost=${rabbit.mq.virtualHost}
#激活有效期(秒)
activeTime=${activeTime}
yoho.unions.env.namespace=unions
\ No newline at end of file
yoho.unions.env.namespace=unions
#zookeeper地址
zkAddress=${zkAddress}
# web context
web.context=unions
\ No newline at end of file
... ...
#zookeeper地址
zkAddress=${zkAddress}
# web context
web.context=unions
\ No newline at end of file