InfoCenter Home >
6: Administer applications >
6.6: Tools and resources quick reference >
6.6.0: About user assistance >
6.6.0.16: Dynamic fragment cache configuration >
6.6.0.16.4: Dynamic fragment caching monitor

6.6.0.16.4: Dynamic fragment caching monitor

WebSphere Application Server provides the Servlet Cache Monitor application for inspecting the contents and behavior of the fragment cache. To use the Servlet Cache Monitor, install the ServletCacheMonitor.ear file, located in the product_installation/installableApps directory, on each application server that uses the dynamic fragment cache function.

After the ServletCacheMonitor.ear file is installed, access the Servlet Cache Monitor through the /servletcache URI.

To monitor different application servers on the same node, modify the ServletCacheMonitor.ear file's Web path using the Application Assembly Tool. This allows you to access the different servers' cache monitors with different URIs.

Cache statistics

Cache statistics view

The statistics page is the main page of the monitor and describes the following properties:

  • Cache Size - The maximum number of cache entries as defined in the global properties of the fragment cache.

  • Used Entries - The number of entries currently contained in the cache

  • Cache Hits - The number of servlet/JSP requests, both external (from a browser) and internal (included/forwarded from another servlet/JSP) that have been served from the cache since startup.

  • Cache Misses - The number of requests for cacheable servlets or JSPs, that were not served from the cache, i.e. resulted in executing the fragment and storing the result in the cache.

  • LRU Evictions - The number of entries that have been removed from the cache by the LRU algorithm when the cache was full and new entries needed to be added.

  • Explicit Removals - The number of entries removed from the cache through cache policy rules, or through the cache monitor.

  • Default Priority - The default value for a cache entry's priority as defined in the global properties of the fragment cache. See the Cache Policies section of the fragment cache documentation for more information about priority.

Cache contents

The contents of the fragment cache can be viewed in the "Cache contents view" panel. A list of all entries, an individual entry, or lists of entries with identical group ids (also referred to as data ids) are available.

Cache contents view

For each entry you can see several of its properties, including template, cache id, and data id. Clicking a template or data id displays a list of entries with the same template/data id.

Cache list of entries

Clicking a cache id in any of the menus in the "Cache list of entries" view, displays a detailed description of the entry. From this panel, you can invalidate the entry, reset its position in the LRU algorithm (mimicking a cache hit on that entry), or return to the main list of entries.

Cache main list view

Clear the cache

This removes every entry currently in the cache.

Go to previous article: Dynamic fragment cache XML examples Go to next article: Administering applications (overview)

 

 
Go to previous article: Dynamic fragment cache XML examples Go to next article: Administering applications (overview)