Tuesday, June 27, 2017

Tune JVM Heap size of OBI and ODI 11.1.1.9.0


Below are the assumptions taken into consideration while modifying JVM heap size.
Server type - Linux
BI setup    - Enterprise
JDK         - SUN
Managed servers are managed through Node Manager.

For Managed server - bi_server1

create backup of setBIAppsDomainEnv.sh

cd $MIDDLEWARE_HOME/user_projects/domains/bifoundation_domain/bin

modify setBIAppsDomainEnv.sh

find out the sentence "${SVR_GRP}" = "obi"".  The highlighted bold had been changed.

 if [ "${SVR_GRP}" = "obi" ] ; then
                #  BIA Managed Server : set max heap to 6GB
                if [ "${JAVA_VENDOR}" = "Sun" ] ; then
                        SERVER_MEM_ARGS="-Xms4096m -Xmx8192m -XX:MaxPermSize=2048m"
                        export SERVER_MEM_ARGS
                        USER_MEM_ARGS="-Xms4096m -Xmx8192m -XX:MaxPermSize=1024m"
                        export USER_MEM_ARGS
                fi

Restart BI server.
The changed heap size can be verified from bi_server1.out file $DOMAIN_HOME/servers/bi_server1/logs/bi_server1.out




For Admin server 

find out the sentence "${SERVER_NAME}" = "AdminServer""  The highlighted bold had been changed.

                if [ "${SERVER_NAME}" = "AdminServer" ] ; then
                        # Admin Server : set max heap to 1GB
                        if [ "${JAVA_VENDOR}" = "Sun" ] ; then
                                # UseSSE42Intrinsics required for EM
                                SERVER_MEM_ARGS="-Xms1024m -Xmx2048m -XX:MaxPermSize=512m -XX:-UseSSE42Intrinsics"
                                export SERVER_MEM_ARGS
                        fi
                        if [ "${JAVA_VENDOR}" = "Oracle" ] ; then
                                SERVER_MEM_ARGS="-Xms256m -Xmx1024m"
                                export SERVER_MEM_ARGS
                        fi


For Managed server - odi_server1 

create a backup of file setBIAODIDomainEnv.sh

find out the sentence "${BIA_SVR_GRP}" = "bia_odi" . The highlighted bold had been changed to increase JVM heap size of ODI server and the same is use to increase heap size of Java EE ODI agent.

if [ "${BIA_SVR_GRP}" = "bia_odi" ] ; then
        # BIA - ODI Managed Server : set max heap to 2GB
        if [ "${JAVA_VENDOR}" = "Sun" ] ; then
                SERVER_MEM_ARGS="-Xms2048m -Xmx8192m -XX:MaxPermSize=1024m"
                export SERVER_MEM_ARGS
        fi
        if [ "${JAVA_VENDOR}" = "Oracle" ] ; then
                SERVER_MEM_ARGS="-Xms256m -Xmx2048m"
                export SERVER_MEM_ARGS
        fi
fi

Restart odi server .
The changed heap size can be verified from bi_server1.out file $DOMAIN_HOME/servers/odi_server1/logs/odi_server1.out

No comments:

Post a Comment