Thursday, June 5, 2014

How to enable Oracle Coherence cache with Webcenter Portal application


Just thought of sharing below article, which talks about enabling Oracle Coherence cache with Webcenter Portal applications.


http://www.ateam-oracle.com/configure-coherence-for-oracle-webcenter-portal-framework-content-presenter-task-flow/

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=482014776313176&id=1675494.1&_adf.ctrl-state=7u8olswzp_49



1. Pre health checks

2. Set Blackout

3. Login to box: vmohsxxx001.oracleoutsourcing.com

4. Navigate to  /dkendd/admin/user_projects/domains/wcp_domain/bin

cd  /dkendd/admin/user_projects/domains/wcp_domain/bin

5. Take backup of setDomainEnv.sh

cp setDomainEnv.sh setDomainEnv.sh_<DDMMYYYY>

6. Modify the setDomainEnv.sh as follows


From:
=====
if [ "${SERVER_NAME}" = "" ] ; then
   USER_MEM_ARGS=" -Xms1024m -Xmx1024m -XX:MaxPermSize=512m"
fi

if [ "${SERVER_NAME}" = "AdminServer" ] ; then
  USER_MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m"
fi

if [ "${SERVER_NAME}" = "WC_Collaboration" ] ; then
   USER_MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m"
fi

if [ "${SERVER_NAME}" = "WC_Portlet" ] ; then
   USER_MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m"
fi

if [ "${SERVER_NAME}" = "WC_Spaces" ] ; then
   USER_MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m"
fi

if [ "${SERVER_NAME}" = "WC_UCM" ] ; then
   USER_MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m"
fi

if [ "${SERVER_NAME}" = "WC_Utilities" ] ; then
  USER_MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m"
fi

To:
===
if [ "${SERVER_NAME}" = "" ] ; then
   USER_MEM_ARGS=" -Xms1024m -Xmx1024m -XX:MaxPermSize=512m"
   EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -Dtangosol.coherence.management=all"
   export EXTRA_JAVA_PROPERTIES
fi

if [ "${SERVER_NAME}" = "AdminServer" ] ; then
  USER_MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m"
fi

if [ "${SERVER_NAME}" = "WC_Collaboration" ] ; then
   USER_MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m"
   EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -Dtangosol.coherence.management=all"
   export EXTRA_JAVA_PROPERTIES
fi

if [ "${SERVER_NAME}" = "WC_Portlet" ] ; then
   USER_MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m"
   EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -Dtangosol.coherence.management=all"
   export EXTRA_JAVA_PROPERTIES
fi

if [ "${SERVER_NAME}" = "WC_Spaces" ] ; then
   USER_MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m"
   EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -Dtangosol.coherence.management=all"
   export EXTRA_JAVA_PROPERTIES
fi

if [ "${SERVER_NAME}" = "WC_UCM" ] ; then
   USER_MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m"
   EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -Dtangosol.coherence.management=all"
   export EXTRA_JAVA_PROPERTIES

fi

if [ "${SERVER_NAME}" = "WC_Utilities" ] ; then
  USER_MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m"
  EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -Dtangosol.coherence.management=all"
   export EXTRA_JAVA_PROPERTIES
fi


Save it

7. Restart the  managed servers as per OMP

8. verify the newly added parameter effected

9. Perform post health checks

No comments:

Post a Comment