标签:
启动被管服务器的脚本
rm -rf ../servers/server5002/stage/* rm -rf ../servers/server5002/tmp/* sleep 20 USER_MEM_ARGS="-Xms3096m -Xmx3096m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:NewRatio=4 -XX:SurvivorRatio=6 -Xmn1024m" export USER_MEM_ARGS nohup ./startManagedWebLogic.sh server5002 http://10.10.68.140:5001>>../log/server5002.out & sleep 1 tail -f ../log/server5002.out
设置adminServer的内存 /bin/setCommEnv.sh,内存全修改为指定主管服务器的启动内存
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
WLS_MEM_ARGS_64BIT="-Xms256m -Xmx512m"
export WLS_MEM_ARGS_64BIT
WLS_MEM_ARGS_32BIT="-Xms256m -Xmx512m"
export WLS_MEM_ARGS_32BIT
else
WLS_MEM_ARGS_64BIT="-Xms512m -Xmx512m"
export WLS_MEM_ARGS_64BIT
WLS_MEM_ARGS_32BIT="-Xms512m -Xmx512m"
export WLS_MEM_ARGS_32BIT
fi
MEM_ARGS_64BIT="${WLS_MEM_ARGS_64BIT}"
export MEM_ARGS_64BIT
MEM_ARGS_32BIT="${WLS_MEM_ARGS_32BIT}"
export MEM_ARGS_32BIT
if [ "${JAVA_USE_64BIT}" = "true" ] ; then
MEM_ARGS="${MEM_ARGS_64BIT}"
export MEM_ARGS
else
MEM_ARGS="${MEM_ARGS_32BIT}"
export MEM_ARGS
fi
标签:
原文地址:http://www.cnblogs.com/whytohow/p/5410204.html