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...
$AdminControl queryNames type=DynaCache,* // Returns a list of the available dynamic cache MBeansSelect 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"}
Related tasks
Task overview: Using the dynamic cache service to improve performance
Related Reference
MBean cache statistics
Reference topic