Authored by chunhua.zhang

Update env.sh

@@ -30,6 +30,14 @@ export DEBUG_PORT=`expr 8800 + $SERVER_PORT` @@ -30,6 +30,14 @@ export DEBUG_PORT=`expr 8800 + $SERVER_PORT`
30 30
31 export CHECK_SERVER_STARTUP_URL="http://127.0.0.1:$HTTP_SERVER_PORT/$SERVER_NAMESPACE/common/ok.jsp" 31 export CHECK_SERVER_STARTUP_URL="http://127.0.0.1:$HTTP_SERVER_PORT/$SERVER_NAMESPACE/common/ok.jsp"
32 export STARTUP_SUCCESS_MSG="Server Online Resources ok" 32 export STARTUP_SUCCESS_MSG="Server Online Resources ok"
  33 +
  34 +export GROUP=${yoho.env.group}
  35 +if [ "$GROUP" = ".env.group" ];then
  36 + export JAVA_OPTS=" -XX:-OmitStackTraceInFastThrow -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true "
  37 +else
  38 + export JAVA_OPTS=" -XX:-OmitStackTraceInFastThrow -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dgroup=$GROUP "
  39 +fi
  40 +
33 export JAVA_OPTS=" -XX:-OmitStackTraceInFastThrow -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true " 41 export JAVA_OPTS=" -XX:-OmitStackTraceInFastThrow -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true "
34 export JAVA_DEBUG_OPT=" -server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=$DEBUG_PORT,server=y,suspend=n " 42 export JAVA_DEBUG_OPT=" -server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=$DEBUG_PORT,server=y,suspend=n "
35 43