Thursday, June 16, 2011

SOA Suite: Separate memory settings for Managed Servers

Might be, that you would like to spend more memory on soa than on bam or osb if you set them up in one domain, but on separate manageds servers.

Here is how I do server-specific memory settings for my domain in "setSOADomainEnv.cmd" file in directory "...\user_projects\domains\soa\bin" then:

echo ** Server Name: %SERVER_NAME% **
if "%SERVER_NAME%"=="AdminServer" (
echo ** Override memory settings for Admin Server **
set USER_MEM_ARGS=-Xms1536m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=768m
)
if "%SERVER_NAME%"=="bam_server" (
echo ** Override memory settings for BAM Server **
set USER_MEM_ARGS=-Xms1536m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=512m
)

No comments:

Post a Comment