You can use the Performance Monitoring Infrastructure (PMI) data for Dynamic Cache to monitor the behavior and performance of the dynamic cache service. For information on the functions and usages of dynamic cache, refer to Configuring the dynamic cache service to improve performance.
Use the DynaCache MBean to access the related data and display it under Dynamic Cache in TPV.
Note: With the instrumentation level set to anything other than MAX, the values may be less accurate for TimeStatistics and CountStatistics (and in the case of CountStatistics, such as numConnectionHandles, can even be negative). This is due to counters not being synchronized. Synchronizing counters is very expensive in terms of resources, so it is only done when the instrumentation level is set to MAX.
Name | Key | Description | Granularity | Type | Level |
Max in memory cache size | cacheModule.maxInMemoryCacheSize | The maximum number of in-memory cache entries | Per server | CountStatistic | Low |
In memory cache size | cacheModule.inMemoryCacheSize | The current number of in-memory cache entries | Per server | CountStatistic | Low |
Timeouts | cacheModule.totalTimeoutInvalidations | The aggregate of template timeouts and disk timeouts | Per server | CountStatistic | Low |
Hits in memory | cacheModule.template.hitsInMemory | The requests for this cacheable object served from memory | Per template | CountStatistic | Low |
Hits on disk | cacheModule.template.hitsOnDisk | The requests for this cacheable object served from disk | Per template | CountStatistic | Low |
Explicit invalidations | cacheModule.template.explicitInvalidations | The total of explicit invalidations issued for this template | Per template | CountStatistic | Low |
LRU invalidations | cacheModule.template.lruInvalidations | Cache entries evicted from memory by a least recently used algorithm. These entries are passivated to disk if disk overflow is enabled. | Per template | CountStatistic | Low |
Timeouts | cacheModule.template.timeoutInvalidations | The cache entries evicted from memory or disk, or both, because their timeout has expired | Per template | CountStatistic | Low |
Entries | cacheModule.template.entries | The current number of cache entries created from this template. This refers to the per-template equivalent of totalCacheSize. | Per template | CountStatistic | Low |
Remote hits | cacheModule.template.hitsRemote | The requests for this cacheable object served from other Java virtual machines (JVM) in the cluster | Per template | CountStatistic | Low |
Misses | cacheModule.template.misses | The requests for this cacheable object that were not found in the cache | Per template | CountStatistic | Low |
Client requests | cacheModule.template.requestsFromClient | The requests for this cacheable object generated by applications running on the application server | Per template | CountStatistic | Low |
Distributed requests | cacheModule.template.requestsFromJVM | The requests for this cacheable object generated by cooperating caches in this cluster | Per template | CountStatistic | Low |
Explicit invalidations (memory) | cacheModule.template.explicitInvalidationsFromMemory | The explicit invalidations resulting in an entry being removed from memory | Per template | CountStatistic | Low |
Explicit invalidations (disk) | cacheModule.template.explicitInvalidationsFromDisk | The explicit invalidations resulting in an entry being removed from disk | Per template | CountStatistic | Low |
Explicit invalidations (no op) | cacheModule.template.explicitInvalidationsNoOp | The explicit invalidations received for this template where no corresponding entry exists | Per template | CountStatistic | Low |
Local explicit invalidations | cacheModule.template.explicitInvalidationsLocal | The explicit invalidations generated locally, either programmatically or by a cache policy | Per template | CountStatistic | Low |
Remote explicit invalidations | cacheModule.template.explicitInvalidationsRemote | The explicit invalidations received from a cooperating JVM in this cluster | Per template | CountStatistic | Low |
Remote creations | cacheModule.template.remoteCreations | The entries received from cooperating dynamic caches | Per template | CountStatistic | Low |