SOA Suite 11.1.1.3 AdminServer memory adjust

Just finished to install SOA Suite 11.1.1.3 with OSB 11g.

Later I’ll post about other details regarding the new versions (I have tons of links to share) but for now, needed to right after installation modify the setSOADomainEnv.sh script to use less memory for AdminServer, which is not a problem in a local development machine.

By default, both AdminServer and soa_server1 (managed) starts with “-Xms512m -Xmx1024m” if running in a 32bit machine and “-Xms768m -Xmx1536m” on 64bit machine.

To change that, simple look for Linux32 and Linux64 line in the seSOADomainEnv.sh and replace some lines.

Previously (on lost ?):

LINUX|Linux)
arch=`uname -m`
if [ "${arch}" = "x86_64" ]; then
USER_MEM_ARGS="${PORT_MEM_ARGS}"
else
USER_MEM_ARGS="${DEFAULT_MEM_ARGS}"
fi
export USER_MEM_ARGS
;;

Then, applying the change:


LINUX|Linux)
arch=`uname -m`
if [ "${arch}" = "x86_64" ]; then
if [ "${SERVER_NAME}" = "AdminServer" ] ; then
USER_MEM_ARGS="-Xms384m -Xmx512m"
else
USER_MEM_ARGS="${PORT_MEM_ARGS}"
fi
else
USER_MEM_ARGS="${DEFAULT_MEM_ARGS}"
fi
export USER_MEM_ARGS
;;

With that, we simple check if the current server starting is “AdminServer”, if so, set the JVM to use less memory.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s