Dynamic cache MBean statistics

The dynamic cache service provides an MBean interface to access cache statistics.

Access cache statistics with the MBean interface, using JACL

  • Obtain the MBean identifier with the queryNames command, for example:
    $AdminControl queryNames type=DynaCache,*  // Returns a list of the available dynamic cache MBeans
    
    
    Select your dynamic cache MBean and run the following command:
    set mbean <dynamic_cache_mbean>
    
  • Retrieve the names of the available cache statistics:
    $AdminControl invoke $mbean getCacheStatisticNames
  • Retrieve the names of the available cache instances:
    $AdminControl invoke $mbean getCacheInstanceNames
  • Retrieve all of the available cache statistics for the base cache instance:
    $AdminControl invoke $mbean getAllCacheStatistics
  • Retrieve all of the available cache statistics for the named cache instance:
    $AdminControl invoke $mbean getAllCacheStatistics "services/cache/servletInstance_4"
  • Retrieve cache statistics that are specified by the names array for the base cache instance:
    $AdminControl invoke $mbean getCacheStatistics {"DiskCacheSizeInMB ObjectsReadFromDisk4000K RemoteObjectMisses"}
  • Retrieve cache statistics that are specified by the names array for the named cache instance:
    $AdminControl invoke $mbean getCacheStatistics {services/cache/servletInstance_4 "ExplicitInvalidationsLocal CacheHits"}
  • Retrieve all the cache IDs in memory for the named cache instance that matches the specified regular expression:
    $AdminControl invoke $mbean getCacheIDsInMemory {services/cache/servletInstance_4 \S}
  • Retrieve all cache IDs on disk for the named cache instance that matches the specified regular expression:
    $AdminControl invoke $mbean getCacheIDsOnDisk {services/cache/servletInstance_4 \S}
  • Retrieves the CacheEntry, which holds metadata information for the cache ID:
    $AdminControl invoke $mbean getCacheEntry {services/cache/servletInstance_4 cache_id_1}
  • Invalidates all cache entries that match the pattern-mapped cache IDs in the named cache instance and all cache entries dependent upon the matched entries in the instance:
    $AdminControl invoke $mbean invalidateCacheIDs {services/cache/servletInstance_4 cache_id_1 true}