Use the dynamic cache service to improve performance
Overview
WAS consolidates several caching activities including...
- servlets
- Web services
- JSPs
- 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 appserver. 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.
The dynamic cache service works within an appserver 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
- Enable the dynamic cache service globally.
- Configure the type of caching that you are using:
- Servlet caching.
- Portlet fragment caching.
- Edge Side Include caching.
- Command caching.
- Cache Web services.
- Web services client cache.
- Monitor the results of the configuration using the dynamic cache monitor.
What to do next
To use the DistributedMap and DistributedObjectCache interfaces for the dynamic cache, see...
Disk cache infrastructure enhancements
Enable the dynamic cache service
Configure cache replication
Configure cacheable objects with the cachespec.xml file
Configure command caching
Eviction policies using the disk cache garbage collector
Example: Cache Web services
Configure the Web services client cache
Display cache information
Use the DistributedMap and DistributedObjectCache interfaces for the dynamic cache
Use servlet cache instances
Disable template-based invalidations during JSP reloads
Dynamic cache MBean statistics
Example: Configure the dynamic cache service
Dynamic cache PMI counter definitions
Troubleshoot the dynamic cache service
Related tasks
Tune the application serving environment