Network Deployment (Distributed operating systems), v8.0 > Reference > Sets
Access dynamic cache MBean statistics
Access cache statistics
// Return a list of the available dynamic cache MBeans
$AdminControl queryNames type=DynaCache,*// Select dynamic cache MBean
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 specified by the names array for the base cache instance:
$AdminControl invoke $mbean getCacheStatistics {"DiskCacheSizeInMB ObjectsReadFromDisk4000K RemoteObjectMisses"}// Retrieve cache statistics specified by the names array for the named cache instance:
$AdminControl invoke $mbean getCacheStatistics {services/cache/servletInstance_4 "ExplicitInvalidationsLocal CacheHits"}// Retrieve 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}// Retrieve the CacheEntry, which holds metadata information for the cache ID
$AdminControl invoke $mbean getCacheEntry {services/cache/servletInstance_4 cache_id_1}//Invalidate 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}
Task overview: Using the dynamic cache service to improve performance
Related
MBean cache statistics