Amazon books

Thursday, March 24, 2011

How to change Java Heap Size - Weblogic

If you are trying to deploy and are facing timeout on Weblogic, try to increse Java Heap Size.

Find and edit file setDomainEnv.sh (path example: /ora01/XXX/WEBLOGIC/BEA/user_projects/domains/xxx_domain/bin):

Add lines below:

USER_MEM_ARGS="-Xms1024m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=512m"
export USER_MEM_ARGS


Restart Weblogic:
stopWebLogic.sh
startWebLogic.sh

Test again!


Best Regards,
Paulo Portugal

No comments:

Post a Comment