BEA-310003 There is danger of OutOfMemoryError

最近忙一个项目,发现项目在启动一段时间总是出现下面的情况:

<BEA-310003> <Free memory in the server is 4,937,360 bytes. There is danger of OutOfMemoryError> 

在Oracle官网查询得到如下错误解释:

BEA-310003

Critical: Free memory in the server is freeMemory bytes. There is danger of OutOfMemoryError

Description

Free memory in the server is very low

Cause

Free memory in the server is very low

Action

TBD. add description of overload actions
目前我的项目中启动内存是如下配置:

-Xms1024m -Xmx1024m -XX:MaxPermSize=256m

经过咨询Oracle厂商,Oracle厂商表示启动内存分配有点小,建议修改

于是在home/****/domains/Domain001/bin 下新建 startAdmin.sh 作如下编写。

USER_MEM_ARGS="-Xms2048m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:NewRatio=4 -XX:SurvivorRatio=6"
export USER_MEM_ARGS


rm -rf ../servers/AdminServer/tmp/*


nohup /home/****/domains/Domain001/bin/startWebLogic.sh >> /home/****/domains/Domain001/log/Admin.out &
sleep 1
tail -f /home/****/domains/Domain001/log/Admin.out


你可能感兴趣的:(BEA-310003 There is danger of OutOfMemoryError)