Hi Viewers,
This post will explain you, how to customize the memory arguments in weblogic 12c.
- Login into the your respecticve weblogic domain and go to the bin directory.
- Cat the setDomain.sh file to verfy the below lines are existed , if not copy from here and update the file.
# Set user overrides, if available.
if [ -f ${DOMAIN_HOME}/bin/setUserOverrides.sh ] ; then
. ${DOMAIN_HOME}/bin/setUserOverrides.sh
fi
3. Next step, create the setUserOverrides.sh file inside bin directory.
4. Add the following lines inside the setUserOverrides.sh file, in order to customize the memory arguments for your domain admin server and managed servers.
if [ "$SERVER_NAME" == "managed server name" ]; then
MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=2048m"
export MEM_ARGS
elif [ "$SERVER_NAME" == "managed server name" ]; then
MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=2048m"
export MEM_ARGS
elif [ "$SERVER_NAME" == "AdminServer" ]; then
MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxPermSize=512m"
export MEM_ARGS
fi
Happy to share with you !!!.
Thanks,
Madhu