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.
- To configure the Dynamic Cache Service:
- Log in to the Administrative Console for WebSphere Application Server.
- To locate the cache properties under a server's Web Container:
- Click Servers in the navigation tree.
- Click Application Servers in the navigation tree.
- Click the server where WebSphere Portal is installed.
- Click the Configuration tab.
- Click Dynamic Cache Service.
- 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.
- Click Apply or OK to accept the changes.
- To activate servlet caching:
- Log in to the Administrative Console for WebSphere Application Server.
- Click Servers in the navigation tree.
- Click Application Servers in the navigation tree.
- Click the relevant server.
- Click Web Container.
- Click the Configuration tab.
- Click Enable servlet caching.
- 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
- Portal configuration
- Administer your portal
- Designing your portal
- Developing portlets
- Troubleshooting
- Directory structure