Friday, July 3, 2015

Increase Weblogic Managed Server Memory

In the setDomainenv.sh file find the following line

# IF USER_MEM_ARGS the environment variable is set, use it to override ALL MEM_ARGS values

and add the following statements.

##Custom Argument for memory to set value for individual server
case "${SERVER_NAME}" in
"AdminServer") USER_MEM_ARGS="-Xms512m -Xmx1024m" ;;
"bam_server1") USER_MEM_ARGS="-Xms512m -Xmx1g" ;;
"soa_server1") USER_MEM_ARGS="-Xms1536m -Xmx3g" ;;
"osb_server1") USER_MEM_ARGS="-Xms512m -Xmx512m" ;;*)

echo “Unknown Server Detected!!. Memory set as Xms1g Xmx1g.”;

USER_MEM_ARGS="-Xms1g -Xmx1g" ;;

esac

USER_MEM_ARGS="${USER_MEM_ARGS} -d64 -XX:PermSize=256m -XX:MaxPermSize=512m -Djava.awtheadless=true -Djbo.ampool.maxpoolsize=600000"
##Custom Argument End

No comments: