Wednesday, February 10, 2021

Increase heap size for Admin and managed servers in Weblogic Instance

1. Shutdown Admin and Managed servers

2. Take a backup of setDomainEnv.sh  file.

3. Open  setDomainEnv.sh file that is under the $DOMAIN_HOME/bin directory.

4. Copy and paste the below lines in the setDomainEnv.sh file.

#In case of Admin Server

if [ "${SERVER_NAME}" == "AdminServer" ] ; then

USER_MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxPermSize=512m"

export USER_MEM_ARGS

fi

#In case of osb_server1 Server

if [ "${SERVER_NAME}" == "osb_server1" ] ; then

USER_MEM_ARGS="-Xms512m -Xmx4096m -XX:MaxPermSize=4096m"

export USER_MEM_ARGS

fi

Xms: The minimum heapsize

Xmx: The maximum heapsize

5. Start the Admin server and Managed server.

1 comment:

  1. To increase the heap size in WebLogic, modify the -Xms and -Xmx parameters in the setDomainEnv.sh web hosting (or setDomainEnv.cmd for Windows) script under the DOMAIN_HOME/bin directory. Restart the Admin and Managed servers for the changes to take effect.








    ReplyDelete