Friday, January 9, 2015

Weblogic - There is danger of OutOfMemoryError

When you run ./startWeblogic.sh the in terminal you could see following error 


Jan 9, 2015 2:48:17 PM IST Error Default BEA-000000 Failed to communicate with any of configured Access Server, ensure that it is up and running 

Jan 9, 2015 2:48:32 PM IST Critical Health BEA-310003 Free memory in the server is 2,523,824 bytes. There is danger of OutOfMemoryError

$ vi setDomainEnv.sh
Search for the string USER_MEM_ARGS
After this line in the file:
# IF USER_MEM_ARGS the environment variable is set, use it to override ALL MEM_ARGS values
Add the following two lines:
USER_MEM_ARGS="-Xms512m -Xmx1024m -XX:MaxPermSize=512m"
export USER_MEM_ARGS
You can set "-Xms1g -Xmx1g -XX:MaxPermSize=512m" if you need higher, it depends on your system memory available.



Thanks
Vishwa


No comments:

Post a Comment