1. Edit both files:
- $MSERVER_HOME/bin/setDomainEnv.sh
- $ASERVER_HOME/bin/setDomainEnv.sh
2. Search for the following:
# IF USER_MEM_ARGS the environment variable is set, use it to override ALL MEM_ARGS values'
3. Replace it with:
# IF USER_MEM_ARGS the environment variable is set, use it to override ALL MEM_ARGS values
if [[ "${SERVER_NAME}" == AdminServer ]] ; then
export USER_MEM_ARGS="-Xms256m -Xmx2048m -XX:MaxPermSize=512m ${MEM_DEV_ARGS}"
fi
if [[ "${SERVER_NAME}" == osb_server1 ]] ; then
export USER_MEM_ARGS="-Xms8192m -Xmx8192m -XX:MaxPermSize=512m ${MEM_DEV_ARGS}"
fi
if [[ "${SERVER_NAME}" == osb_server2 ]] ; then
export USER_MEM_ARGS="-Xms8192m -Xmx8192m -XX:MaxPermSize=512m ${MEM_DEV_ARGS}"
fi
if [[ "${SERVER_NAME}" == bam_server1 ]] ; then
export USER_MEM_ARGS="-Xms8192m -Xmx8192m -XX:MaxPermSize=512m -XX:+UseTLAB -XX:TLABSize=64k -XX:PermSize=256m ${MEM_DEV_ARGS}"
fi
if [[ "${SERVER_NAME}" == bam_server2 ]] ; then
export USER_MEM_ARGS="-Xms8192m -Xmx8192m -XX:MaxPermSize=512m -XX:+UseTLAB -XX:TLABSize=64k -XX:PermSize=256m ${MEM_DEV_ARGS}"
fi
if [[ "${SERVER_NAME}" == soa_server1 ]] ; then
export USER_MEM_ARGS="-Xms8192m -Xmx8192m -XX:MaxPermSize=512m -XX:+UseTLAB -XX:TLABSize=64k -XX:PermSize=256m ${MEM_DEV_ARGS}"
fi
if [[ "${SERVER_NAME}" == soa_server2 ]] ; then
export USER_MEM_ARGS="-Xms8192m -Xmx8192m -XX:MaxPermSize=512m -XX:+UseTLAB -XX:TLABSize=64k -XX:PermSize=256m ${MEM_DEV_ARGS}"
fi
Applicable Versions
- Oracle WebLogic Server 11g (10.3.6)
No comments:
Post a Comment