Sunday, November 03, 2013

Tuning Oracle Webcenter editing web.xml

As part of you know, there are many parameters in web.xml that have an important impact on performance for Webcenter Portal applications ( Spaces and CustomPortal).

This is the list of the parameters are considered to improve performance:


Parameters
Value
org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS
3
org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION
FALSE
org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION
FALSE
oracle.adf.view.rich.pprNavigation.OPTIONS
onWithForcePPR
org.apache.myfaces.trinidad.COMPRESS_VIEW_STATE
on
oracle.adf.view.rich.versionString.HIDDEN
TRUE
org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT
FALSE
javax.faces.STATE_SAVING_METHOD
client
oracle.adf.view.rich.libraryPartitioning.ENABLED
TRUE
org.apache.myfaces.trinidad.resource.DEBUG
FALSE
oracle.adf.view.rich.ASSERT_ENABLED
FALSE
org.apache.myfaces.trinidad.CACHE_VIEW_ROOT
TRUE


Steps to edit web.xml file

  1. Navigate to your Oracle WebCenter Portal home directory, usually something like /u01/app/oracle/product/fmw/Oracle_WC1
  2. Open the Spaces EAR file:
  3. mkdir -p /tmp/my_ear
  4. cd /tmp/my_ear
  5. jar -xvf $WEBCENTER_HOME/archives/applications/webcenter.ear
  6. mkdir war
  7. cd war
  8. jar -xvf ../spaces.war
  9. Edit WEB-INF/web.xml and save the changes.
  10. Create a modified .EAR file with the required web.xml properties.
  11. cd /tmp/my_ear/war
  12. jar -cvf ../spaces.war *
  13. cd ..
  14. rm -rf war
  15. jar -cvf ../webcenter.ear *
  16. Backup $WEBCENTER_HOME/archives/applications/webcenter.ear
  17. Copy /tmp/webcenter.ear to $WEBCENTER_HOME/archives/applications/webcenter.ear.
  18. In case of cluster environment repeat step 1-17 on all the nodes.
  19. Restart all  WC_Spaces managed servers.

At startup, the newer application is automatically deployed with the modified web.xml.
Future WebCenter Spaces patches will overwrite this configuration change, so you must remember to repeat such configuration changes after patching, that is, you must obtain the latest webcenter.ear file and repeat these steps.
Hope you find this useful,
Emilio

No comments: