Setting MDS Cache Size and Purge Rate Configuring Concurrency Management

Oracle WebCenter Performance Tuning 26-13 The following is a sample snippet of adf-config.xml: adf-portlet-config .... supportedLocales cacheSettings enabled=true maxSize10000000maxSize cacheSettings adf-portlet-config

26.5 Tuning Portlet Configuration

This section describes portlet performance-related configuration. This section includes the following sub sections: ■ Tuning Performance of the Portlet Service ■ Enabling Java Object Cache for WSRP Producers ■ Suppressing Optimistic Rendering for WSRP Portlets ■ Tuning Performance of Oracle PDK-Java Producers ■ Setting ExcludedActionScopeRequestAttributes for Portlets ■ Setting DefaultServedResourceRequiresWsrpRewrite for WSRP Portlets ■ Setting DefaultProxiedResourceRequiresWsrpRewrite for WSRP Portlets ■ Importing Consumer CSS Files in IFrame Portlets ■ Configuring Portlet Timeout ■ Tuning Performance of OmniPortlet

26.5.1 Tuning Performance of the Portlet Service

To manage overall resource usage and user response time, you can remove unnecessary locale support, modify portlet timeout and cache size in the adf-config.xml file. For the Portlet service, 28 supported locales are defined out-of-the-box. You can remove the locales that are unnecessary for your application. If you must modify these properties, post deployment, you must edit adf-config.xml manually. See Editing adf-config.xml in the Oracle Fusion Middleware Administrators Guide for Oracle WebCenter. The following is a sample snippet of adf-config.xml: portletC:adf-portlet-config xmlns=http:xmlns.oracle.comadfportletconfig supportedLocales valueesvalue valuekovalue valueruvalue valuearvalue valuefivalue valuenlvalue valueskvalue valuecsvalue valuefrvalue valuenovalue valuesvvalue valuedavalue 26-14 Oracle Fusion Middleware Performance and Tuning Guide valuehuvalue valueplvalue valuethvalue valuedevalue valueitvalue valueptvalue valuetrvalue valueelvalue valueiwvalue valuept_BRvalue valuezh_CNvalue valueenvalue valuejavalue valuerovalue valuezh_TWvalue supportedLocales defaultTimeout20defaultTimeout minimumTimeout1minimumTimeout maximumTimeout60maximumTimeout parallelPoolSize10parallelPoolSize parallelQueueSize20parallelQueueSize cacheSettings enabled=true maxSize10000000maxSize cacheSettings portletC:adf-portlet-config

26.5.2 Enabling Java Object Cache for WSRP Producers

Oracle recommends that you enable the Java Object Cache JOC for WSRP producers so that objects written to the persistent store are cached. The following is a sample snippet of web.xml: env-entry env-entry-nameoracleportalwsrpserverenableJavaObjectCacheenv-entry-name env-entry-typejava.lang.Stringenv-entry-type env-entry-valuefalseenv-entry-value env-entry

26.5.3 Suppressing Optimistic Rendering for WSRP Portlets

To suppress the optimistic render of WSRP portlets after a WSRP PerformBlockingInteraction or HandleEvents call, set the Portlet container runtime option specified in portlet.xml as follows: com.oracle.portlet.suppressWsrpOptimisticRender=true. ■ true - optimistic render always suppressed ■ false - optimistic render may be performed Normally, if a WSRP portlet receives a WSRP PerformBlockingInteraction request processAction in JSR168JSR286 portlets and the portlet does not send any events as a result, the WSRP producer renders the portlet and returns the portlets markup in the response to the PerformBlockingInteraction SOAP message. This markup may be cached by the consumer until the consumers page renders, and if nothing else affecting the state of the portlet happens such as the portlet receiving an event, the cached markup can be used by the consumer, eliminating the need for a second SOAP call to GetMarkup. This assumes that the portlets render phase is idempotent, which is always a best practice. However, if the portlet expects to receive an event, or rendering the portlet is Oracle WebCenter Performance Tuning 26-15 more costly than a second SOAP message for GetMarkup, the developer may use this container option to suppress the optimistic render of the portlet after a processAction or handleEvent call. The portlet still renders normally when the producer receives the WSRP GetMarkup request

26.5.4 Tuning Performance of Oracle PDK-Java Producers

To manage overall resource usage for a Web producer, you can tune the Connection Timeout property: ■ Default: 30000 ms ■ Minimum: 5000 ms ■ Maximum: 60000 ms Post deployment, modify the Connection Timeout property through Fusion Middleware Control or using WLST. For details, see: ■ Editing Producer Registration Details Using Fusion Middleware Control in Oracle Fusion Middleware Administrators Guide for Oracle WebCenter. ■ Editing Producer Registration Details Using WLST in Oracle Fusion Middleware Administrators Guide for Oracle WebCenter. The following is a sample snippet of connections.xml: webproducerconnection producerName=wc-WebClipping urlConnection=wc-WebClipping-urlconn timeout=10000 establishSession=true mapUser=false

26.5.5 Setting ExcludedActionScopeRequestAttributes for Portlets

Set the Portlet container runtime option specified in portlet.xml as follows: com.oracle.portlet.excludedActionScopeRequestAttributes. This is a multi-valued property, where each value is a regular expression. If using the javax.portlet.actionScopedRequestAttributes container runtime option with a portlet, it is possible to optimize which request attributes get stored between portlet lifecycles using the com.oracle.portlet.excludedActionScopeRequestAttributes container runtime option. Any request attributes which are unnecessary to store between lifecycles can be indicated to increase performance. Default values: ■ javax\.portlet. ■ oracle\.portlet. ■ com\.oracle\.portlet.

26.5.6 Setting DefaultServedResourceRequiresWsrpRewrite for WSRP Portlets

To specify the default WSRP requiresRewrite flag to use when generating Resource URLs for portlet-served resources, set the Portlet container runtime option specified in portlet.xml as follows: com.oracle.portlet.defaultServedResourceRequiresWsrpRewrite. This setting is used for all ResourceURLs created by the portlet, unless overridden by the presence of the oracle.portlet.server.resourceRequiresRewriting request attribute when the ResourceURL methods write or toString are called. This setting is also used to specify the WSRP requiresRewriting flag on the