Use this task to interpret cache monitor statistics to improve the performance of the dynamic cache service. Verify that dynamic cache is enabled and that the cache monitor application is installed on your application server.
See Displaying cache information to configure the cache monitor application. Use the cache monitor to watch cache hits versus misses. By comparing these two values, you can determine how much dynamic cache is helping your application, and if you can take any additional steps to further improve performance and decrease the cost of processing for your application server.
Cache statistic | Description |
---|---|
Cache Size | The maximum number of entries that the cache can hold. |
Used Entries | The number of cache entries used. |
Cache Hits | The number of request responses that are served from the cache. |
Cache Misses | The number of request responses that are cacheable but cannot be served from the cache. |
LRU Evictions | The number of cache entries removed to make room for new cache entries. |
Explicit Removals | The number of cache entries removed or invalidated from the cache based on cache policies or were deleted from the cache through the cache monitor. |
Cache configuration value | Description |
---|---|
Default priority | Specifies the default priority for all cache entries. Lower priority entries are moved from the cache before higher priority entries when the cache is full. You can specify the priority for individual cache entries in the cache policy. |
Servlet Caching Enabled | If servlet caching is enabled, results from servlets and JavaServer Pages files are cached. See Configuring servlet caching for more information. |
Disk Offload Enabled | Specifies if entries that are being removed from the cache are saved to disk. See Configuring dynamic cache disk offload for more information. |
To improve the number of cache hits, you can increase the cache size or configure additional cache policies. See Dynamic cache service settings to increase the cache size and Configuring cacheable objects with the cachespec.xml file for information about configuring cache policies.
See Task overview: Using the dynamic cache service to improve performance for
more information about the dynamic cache.