Thursday, January 19, 2012

How to change startup parameter for Admin and Soa managed Server in SOA 11g Suite?

After having read my JVM tuning for SOA 11g post here you must be thinking where do I specify these startup parameters.

Well there are many ways. For e.g. you can mention it in certain files or in the WLS Admin console itself. Mentioning it in the Admin console would need you to use nodemanager for startup of Admin/Managed servers. An easier way is mentioned below. Hope this helps...

For specifying the startup parameters you can use the setSOADomainEnv.sh.You can find this file in $DOMAIN_Folder/bin path. In this file you can find the following:



if [ "${SERVER_NAME}" = "AdminServer" ] ; then
#DEFAULT_MEM_ARGS="-Xms768m -Xmx1600m"
#PORT_MEM_ARGS="-Xms768m -Xmx1600m"


DEFAULT_MEM_ARGS="-Xms1536m -Xmx1536m -Xss512k -XX:PermSize=512m -XX:MaxPermSize=512m -Duser.timezone=GMT -XX:NewRatio=2 -XX:+AggressiveOpts -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:ParallelGCThreads=32 -XX:InitialSurvivorRatio=10 -XX:SurvivorRatio=10 -Dweblogic.StuckThreadMaxTime=900"
PORT_MEM_ARGS="-Xms1536m -Xmx1536m -Xss512k -XX:PermSize=512m -XX:MaxPermSize=512m -Duser.timezone=GMT -XX:NewRatio=2 -XX:+AggressiveOpts -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:ParallelGCThreads=32 -XX:InitialSurvivorRatio=10 -XX:SurvivorRatio=10 -Dweblogic.StuckThreadMaxTime=900"


fi


#if [ "${SERVER_NAME}" = "soa_ms_1" ] ; then
#DEFAULT_MEM_ARGS="-Xms2048m -Xmx3000m"
#PORT_MEM_ARGS="-Xms2048m -Xmx3000m"
#DEFAULT_MEM_ARGS="-Xss512k -Xms4g -Xmx4g -XX:PermSize=768m -XX:MaxPermSize=768m"
#PORT_MEM_ARGS="-Xss512k -Xms4g -Xmx4g -XX:PermSize=768m -XX:MaxPermSize=768m"
#fi



Make changes as needed by you for the Admin or Manged server. Restart the server. Check the out file and verify if changes took place.


Now you can folow us on facebook and post your comments/views and questions for expert advise. Check this out facebook


Find us on facebook here

2 comments:

  1. Hi Siddharth,

    I cannot see the following in my setSOADomainEnv file

    if [ "${SERVER_NAME}" = "AdminServer" ] ;


    Here I am copying the contents of the file, pls advise where should I add this now?

    Thanks,
    Surya.


    #setSOADomainEnv.sh file contents

    if [ "${XENGINE_DIR}" = "" ]; then
    echo "*****************************************************"
    echo "** Setting up SOA specific environment..."

    PLATFORM_TYPE=`uname -s`

    # 8331492: Value of weblogic.resourcepool.max_test_wait_secs is 10
    # seconds. It can be increased by uncommenting line below if your database
    # connections are slow. See SOA documentation for more details.
    #
    #EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -Dweblogic.resourcepool.max_test_wait_secs=30"
    #export EXTRA_JAVA_PROPERTIES

    # 8395254: add -da:org.apache.xmlbeans... in EXTRA_JAVA_PROPERTIES
    EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -da:org.apache.xmlbeans..."

    XENGINE_DIR="${SOA_ORACLE_HOME}/soa/thirdparty/edifecs/XEngine"
    DEFAULT_MEM_ARGS="-Xms512m -Xmx2048m"
    PORT_MEM_ARGS="-Xms4096m -Xmx6144m"

    if [ "${JAVA_VENDOR}" != "Oracle" ] ; then
    DEFAULT_MEM_ARGS="${DEFAULT_MEM_ARGS} -XX:PermSize=256m -XX:MaxPermSize=2048m"
    PORT_MEM_ARGS="${PORT_MEM_ARGS} -XX:PermSize=2048m -XX:MaxPermSize=4096m"
    fi

    #========================================================
    # setup LD_LIBRARY_PATH if directory is present...
    #========================================================
    if [ -d ${XENGINE_DIR}/bin ]; then
    LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${XENGINE_DIR}/bin"
    export LD_LIBRARY_PATH
    fi

    #Platform specific settings below.

    ReplyDelete
  2. #DEFAULT_MEM_ARGS="-Xms768m -Xmx1600m"
    #PORT_MEM_ARGS="-Xms768m -Xmx1600m"


    Can any one tell me what is the purpose of these two mem settings on SOA env where as we have only one mem setting in normal wls server?

    In this case each Admin/Mngd server requires combination of these two memory amount?

    Gopal

    ReplyDelete