Configure dynamic fragment cache


This section provides information for configuring dynamic fragment cache for use with WebSphere Portal. Dynamic fragment cache is a component of WebSphere Application Server that provides content caching. Dynamic fragment cache (also known as servlet caching) is enabled and configured through the administrative console of WebSphere Application Server.

 

Configure dynamic fragment cache

Use the administrative console of WebSphere Application Server to configure and activate dynamic fragment cache.

  1. To configure the Dynamic Cache Service:
    1. Log in to the Administrative Console for WebSphere Application Server.
    2. To locate the cache properties under a server's Web Container:
      1. Click Servers in the navigation tree.
      2. Click Application Servers in the navigation tree.
      3. Click the server where WebSphere Portal is installed.
      4. Click the Configuration tab.
      5. Click Dynamic Cache Service.

    3. Set the following fields to enable dynamic caching:

      • Select Enable service at service startup in the Startup state field.
      • In the Cache size field, type a value between 100 and 200000 to specify the maximum number of entries the cache holds.
      • In the Default priority field, accept the default value to to specify the default priority for cache entries, determining how long an entry stays in a full cache.

    4. Click Apply or OK to accept the changes.

  2. To activate servlet caching:
    1. Log in to the Administrative Console for WebSphere Application Server.
    2. Click Servers in the navigation tree.
    3. Click Application Servers in the navigation tree.
    4. Click the relevant server.
    5. Click Web Container.
    6. Click the Configuration tab.
    7. Click Enable servlet caching.
    8. Click Apply or OK to accept the changes.

 

Monitor the cache

WebSphere Application Server provides Dynamic Cache Monitor for monitoring the contents and behavior of the fragment cache. Use Dynamic Cache Monitor to view cache statistics, contents, and policies.

To enable the Dynamic Cache Monitor application, install the CacheMonitor.ear file located in the <WAS_PATH>/installableApps directory. The application must be deployed on the server where WebSphere Portal is installed.

To access the Dynamic Cache Monitor application using the /cachemonitor URI, you need the necessary rights for the /cachemonitor servlet.

See also