In Unix/Linux
Add these lines to $DOMAIN_HOME/bin/startWeblogic.sh file ,
+=+= Start +=+=
if [ "$SERVER_NAME" = "AdminServer" ]
then
export MEM_ARGS="-Xms512m -Xmx1560m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=64m"
fi
if [ "$SERVER_NAME" = "bam_server1" ]
then
export MEM_ARGS="-Xms512m -Xmx756m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=64m"
fi
echo "================================ Memory Arguments for " $SERVER_NAME " " $MEM_ARGS
+=+= End +=+=
Add the above libes after the line ,
. ${DOMAIN_HOME}/bin/setDomainEnv.sh $*
In Windows
+=+= Start +=+=
if "%SERVER_NAME%"=="AdminServer" (
set MEM_ARGS=
set MEM_ARGS=-Xms512m -Xmx1586m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=64m
)
if "%SERVER_NAME%"=="bam_server1" (
set MEM_ARGS=
set MEM_ARGS=-Xms212m -Xmx556m -XX:PermSize=212m -XX:MaxPermSize=312m -XX:ReservedCodeCacheSize=64m
)
echo ===================== Memory Arguments for %SERVER_NAME% %MEM_ARGS%
+=+= End +=+=
Add the above libes after the line
call "%DOMAIN_HOME%\bin\setDomainEnv.cmd" %*
No comments:
Post a Comment