Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • WebSphere Portal Family wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 6.0
  • 6.1
  • 6.1.0.1
  • 6.1.5
  • 7.0
  • 7.0.0.2
  • 8.0
  • actions
  • administrator
  • authoring
  • Banking template
  • best practices
  • blogs
  • builder
  • building a site
  • caching
  • catalog
  • Clickstream Engine
  • clusters
  • ConfigEngine tasks
  • content
  • customizing
  • databases
  • demo
  • deployment
  • deployment scenario
  • developer
  • developing
  • device class
  • elements
  • examples
  • Express
  • feature set
  • fix pack 2
  • Government to Business template
  • info center
  • information center
  • installation
  • installing
  • LDAP
  • Learning
  • libraries
  • LikeMinds Recommendation Engines
  • logging
  • mentors
  • message catalog
  • messages
  • migration
  • mobile
  • mobile devices
  • mobile experience
  • mobile experience 8.0
  • mobile theme
  • mobile webkit
  • MPA
  • multiplatform
  • pages
  • performance
  • personalization
  • planning
  • portal
  • Portal 6.1
  • Portal 8 theme
  • portlets
  • product doc
  • product documentation
  • projects
  • properties
  • Redbooks
  • Redbooks Wiki
  • remember me cookie
  • resources
  • REST
  • Retail Vendor template
  • rules
  • samples
  • search
  • security
  • sifters
  • sites
  • solutions catalog
  • syndication
  • test infrastructure
  • theme
  • theme optimization
  • topologies
  • troubleshooting
  • tutorials on personalization
  • video
  • wcm
  • web content
  • webkit
  • WebSphere Portal
  • WebSphere Portlet Factory
  • wikis
  • workflows
  • worksheet
  • XML configuration interface
  • z/os
  • zos
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > WebSphere Portal and Lotus Web Content Management 6.1.x Performance Tuning Guide > Tuning the Web 2.0 Theme (Tuning Guide 6.1.x)
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Tuning the Web 2.0 Theme (Tuning Guide 6.1.x) 

expanded Abstract
collapsed Abstract
No abstract provided.

In the Web 2.0 theme environment a reverse proxy was used to cache content outboard of IBM® WebSphere® Portal. The reverse proxy was set up to take advantage of the fact that portlet fragments are fetchable and cacheable. This avoids having to refetch the entire portal page in many cases. This allowed some content to be fetched without going to the Web server or the Portal server. Performance can be further improved by having the reverse proxy configured to compress much of the content.
In general, the same tuning that was used for the Base Portal Scenario described in previous section was used for the Web 2.0 Scenario. The differences in tuning are described in the following sections.



Contents

     JVM Initial and Maximum Heap Size
     Navigator Service Properties
     Internet Explorer Support of Vary Header
     Caching Proxy Tuning
     Web Server Tuning
     Portlet Caching

JVM Initial and Maximum Heap Size


The Java™ Virtual Machine (JVM) Initial and Maximum heap size (ms and mx) were set to 1280. With higher values the system ran out of native memory under high virtual user load. You can resolve this problem by using the – Xalwaysclassgc JVM parameter along with setting -Xmx=1408. However the throughput was better with -Xmx=1280 than when using – Xalwaysclassgc and – Xmx=1408.


Navigator Service Properties


The following values were specified in NavigatorService.properties in addition to the parameters changed in the Base Portal tuning:


Table 16: Navigation Service Settings for Web 2.0 Theme

Parameter Setting Used
remote.cache.expiration.feed.cm 600
remote.cache.expiration.feed.nm 600
remote.cache.expiration.feed.lm 600
remote.cache.expiration.feed.pm 600


Internet Explorer Support of Vary Header

When Microsoft® Internet Explorer 7 is sent a vary HTTP header, the browser is unable to cache that reply effectively. To configure WebSphere Portal to not send the vary header to Internet Explorer 7, do the following:

  1. Log in to WebSphere Portal as an administrator.
  2. Navigate to Administration > Portal Settings > Supported Clients.
  3. Select .*MSIE 7.0.* (Internet Explorer 7) and click Edit selected client.
  4. In the Capabilities field, select CACHE_VARY and click Delete then OK.
Repeat steps: Repeat the preceding steps for other versions of Internet Explorer as appropriate.

Caching Proxy Tuning


The following are the settings and tunings specified in the reverse proxy ibmproxy.conf file for the Web 2.0 performance test:

Table 17: Reverse Proxy Settings

Parameter Setting Used Additional Information
Proxy /wps/* http://server_name/wps/* Proxy for /wps
Proxy /wps_semanticTag* http://server_name/wps_semanticTag* :80 Proxy for /wps_semanticTag
Proxy /searchfeed* http://server_name/searchfeed* :80 Proxy for /searchfeed
ConnThreads 15
ServerConnPool on
MaxSocketPerServer 20
CacheTimeMargin 5 seconds
CacheFileSizeLimit 2 M
flexibleSocks off
LimitRequestFieldSize 16384
CompressionFilterEnable C:\PROGRA~1\IBM\edge\cp\Bin\mod_z.dll
CompressionFilter
AddContentType
Image/bitmap,text/css,text/xml,application/xml Compresses everything except text/html, application/atom+xml, text/plain, application/x-javascript. WebSphere Portal compresses those types. Experiments were done where reverse proxy compressed those files as well, which caused the reverse proxy CPU to become a bottleneck. If a more powerful reverse proxy server was available, it might make sense to do all gzipping on the reverse proxy. Note that fixes for PMR 43866,499 were applied to Edge Server v6.02 to get proper gzipping behavior.


Web Server Tuning


HTTP server tuning for cacheability:

# uncommented these to enable statics to be cached
    LoadModule expires_module modules/mod_expires.so
    LoadModule headers_module modules/mod_headers.so

# from http://www.contentwithstyle.co.uk/blog/147 avoid gzip bug in IE 6
    BrowserMatch ^Mozilla/4\.[0678] no-gzip
    BrowserMatch \bMSIE\s7 !no-gzip !gzip-only-text/html

# added this for caching of dojo javascript and the theme’s xsl files, max-age = 1 day
    <Location /wps/themes/dojo>
    Header set Cache-Control public;max-age=86400
    </Location>
    <Location /wps/themes/html/PortalWeb2/xsl>
    Header set Cache-Control public;max-age=86400
    </Location>
# info for these directives at http://httpd.apache.org/docs/2.0/mod/mod_expires.html
# http://httpd.apache.org/docs/2.0/mod/mod_headers.html

# set cache-control public for various static content
    <FilesMatch "\.(gif|jpeg|jpg|png|ico|css|js|swf)$">
    Header set cache-control "public"
    </FilesMatch>

# expire images after a month in the client's cache. Note that one month expiration worked fine for a performance evaluation in a test lab. It should be set appropriately for your environment where images might be updated more frequently than once a month.
    ExpiresActive On
    ExpiresByType image/gif A2592000
    ExpiresByType image/jpg A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/png A2592000
    ExpiresByType application/x-javascript "access plus 1 week"
    ExpiresByType text/javascript "access plus 1 week"
    ExpiresByType text/css "access plus 1 week"
    ExpiresByType application/xml "access plus 1 week"
    ExpiresByType application/vnd.mozilla.xul+xml "access plus 1 week"
    ExpiresByType application/x-www-form-urlencoded "access plus 1 week"
    ExpiresByType text/html "access plus 1 week"
    ExpiresByType text/xml "access plus 1 week"


Portlet Caching


Web Archive (WAR) files contain the following portlet descriptor: portlet.xml. This XML file is located in the WEB-INF directory of the portlet WAR file. To make portlet fragments publicly cacheable, enter the following tags and parameters to portlet.xml between the <portlet> elements:

  • <expiration-cache>28800</expiration-cache>
  • <cache-scope>public</cache-scope>

In the Web 2.0 theme environment a reverse proxy was used to cache content outboard of IBM&#174; WebSphere&#174; Portal. The reverse proxy was set up to take advantage of the fact that portlet fragments are fetchable and cacheable. This avoids having to refetch the entire portal page in many cases. This allowed some content to be fetched without going to the Web server or the Portal server. Performance can be further improved by having the reverse proxy configured to compress much of the content.

expanded Article information
collapsed Article information
Category:
WebSphere Portal and Lotus Web Content Management 6.1.x Performance Tuning Guide
Tags:
JVM initial heap size, JVM maximum heap size, caching proxy tuning, Web server tuning, Web 2.0 theme, portlet caching, navigator service properties, Internet Explorer support of vary header

This Version: Version 2 November 22, 2009 10:21:47 PM by DeAnna Steiner  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (2)
collapsed Versions (2)
Version Comparison     
Version Date Changed by               Summary of changes
This version (2) Nov 22, 2009 10:21:47 PM DeAnna Steiner  
1 Nov 22, 2009 10:00:01 PM DeAnna Steiner  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use