Operating Systems: i5/OS
             Personalize the table of contents and search results

 

Task overview: Using the dynamic cache service to improve performance

 

Caching the output of servlets, commands, and JavaServer Pages improves application performance. WebSphere Application Server consolidates several caching activities including servlets, Web services, and WebSphere commands into one service called the dynamic cache. These caching activities work together to improve application performance, and share many configuration parameters that are set in the dynamic cache service of an application server. You can use the dynamic cache to improve the performance of servlet and JSP files by serving requests from an in-memory cache. Cache entries contain servlet output, the results of a servlet after it runs, and metadata.

 

Overview

The dynamic cache service works within an application server Java virtual machine (JVM), intercepting calls to cacheable objects. For example, it intercepts calls through a servlet service method or a command execute method, and either stores the output of the object to the cache or serves the content of the object from the dynamic cache.

 

Procedure

  1. Enable the dynamic cache service globally. To use the features associated with dynamic caching, enable the service in the administrative console. See Enabling the dynamic cache service for more information.

  2. Configure the type of caching that you are using:

  3. Monitor the results of your configuration using the dynamic cache monitor. For more information, see Displaying cache information.

 

What to do next

To use the DistributedMap and DistributedObjectCache interfaces for the dynamic cache, see Using the DistributedMap and DistributedObjectCache interfaces for the dynamic cache.


}
Disk cache infrastructure enhancements

Enabling the dynamic cache service

Configuring cache replication

Configuring cacheable objects with the cachespec.xml file

Configuring command caching

Eviction policies using the disk cache garbage collector

Example: Caching Web services

Configuring the Web services client cache

Displaying cache information

Using the DistributedMap and DistributedObjectCache interfaces for the dynamic cache

Using servlet cache instances

Disabling template-based invalidations during JSP reloads

Dynamic cache MBean statistics

Example: Configuring the dynamic cache service

Dynamic cache PMI counter definitions

Troubleshooting the dynamic cache service