Setup Step: Configure the WebLogic Server Heap Size



To set the heap size in Windows:
  1. Open the <DOMAIN_HOME>/bin/setDomainEnv.cmd file for editing.
  2. Locate the if NOT "%USER_MEM_ARGS%"=="" ( line, and add the following code before it:
if "%SERVER_NAME%"=="odi_server1" (
    set USER_MEM_ARGS=-Xms512m -Xmx3072m -XX:PermSize=256m -XX:MaxPermSize=512m
)
To set the heap size in Linux:
  1. Open the <DOMAIN_HOME>/bin/setDomainEnv.sh file for editing.
  2. Locate the if [ "${USER_MEM_ARGS}" != "" ] ; then line, and add the following code before it:
if [ "${SERVER_NAME}" = "odi_server1" ] ; then
      USER_MEM_ARGS="-Xms512m -Xmx3072m -XX:PermSize=256m -XX:MaxPermSize=512m"
      export USER_MEM_ARG
fi

No comments:

Post a Comment