Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Key Tools used for debugging Dynacache Issues<br />Published<br />Cache Monitor<br />Extended Cache Monitor<br />Cache Sta...
CacheMonitor Application<br />Shipped with WAS install in the installableAppsdir.<br />Real-time view of the current state...
Extended Cache Monitor shipped on DeveloperWorks<br />http://www.ibm.com/developerworks/websphere/downloads/cache_monitor....
Cache Statistics Collector and Visualizer<br />http://www.alphaworks.ibm.com/tech/cacheviz<br />DynaCache JMX Mbean that e...
Dynacache Runtime Mbean<br />Dynacache Runtime mbean operations:<br />getCacheSize<br />getUsedCacheSize<br />getDiskOverf...
$AdminControlqueryNames type=DynaCache,*
Upcoming SlideShare
Loading in …5
×

Cache Tooling

1,259 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Cache Tooling

  1. 1. Key Tools used for debugging Dynacache Issues<br />Published<br />Cache Monitor<br />Extended Cache Monitor<br />Cache Statistics Collector<br />Dynacache Mbean<br />PMI Counters<br />Unpublished (Will be available on cattail soon)<br />Cache Portlet Viewer<br />Dynacache Probe to inspect the outcome of the caching action<br />Script to parse out trace logs to determine the cacheability of a fragment<br />Generic PD tools (available on the web)<br />Eclipse Memory Analyzer Tool<br />Heapdump Analyzer<br />Thread and Monitor Dump Analyzer for Java<br />PMAT & EVTK tools for verbose GC log analysis<br />
  2. 2. CacheMonitor Application<br />Shipped with WAS install in the installableAppsdir.<br />Real-time view of the current state of dynamic cache (works with eXtreme Scale)<br />Verify the configuration of dynamic cache<br />Verify the cache policies<br />Monitor cache statistics<br />Monitor the data flowing through the cache (Only works for servlet caches)<br />Monitor the data in the edge cache<br />View the data offloaded to the disk<br />Manage the data in the cache<br />
  3. 3. Extended Cache Monitor shipped on DeveloperWorks<br />http://www.ibm.com/developerworks/websphere/downloads/cache_monitor.html<br />Provides two functions that are not available with the cache monitor<br />Display the contents of object cache i.e. distributedmap i.e. POJO cache instances.<br />Display the Dynamic Cache Mbean statistics for cache instances across all members of the cluster.<br />Installed as an update to the existing CacheMonitor application.<br />All DC customers that use the DistributedMap API leverage the ECM in development and production.<br />
  4. 4. Cache Statistics Collector and Visualizer<br />http://www.alphaworks.ibm.com/tech/cacheviz<br />DynaCache JMX Mbean that exposes a # of cache statistics.<br />Statistics provide insight into the state, health, performance, composition & efficiency of the cache.<br />Statistics enable an app. developer to tweak caching strategies for optimal operation.<br />Collect cache statistics using DynaCacheStatisticsCSV.py wsadminjython script.<br />outputs statistics in a CSV-separated format<br />Statistics can then be charted with Microsoft Excel or OpenOfficeSpreadSheet.<br />
  5. 5. Dynacache Runtime Mbean<br />Dynacache Runtime mbean operations:<br />getCacheSize<br />getUsedCacheSize<br />getDiskOverflow<br />getCacheStatisticNames<br />getCacheInstanceNames<br />getAllCacheStatistics<br />getCacheStatistics<br />getCacheIDsInMemory<br />getCacheIDsOnDisk<br />getCacheIDsInPushPullTable<br />getCacheEntry<br />invalidateCacheIDs<br />clearCache<br />getCacheDigest<br />compareCaches<br />getStats<br />DynaCache Runtime mbean attributes:<br />cacheSize<br />usedCacheSize<br />diskOverflow<br />stats<br /><ul><li>Access cache statistics with the MBean interface Sample JACL …
  6. 6. $AdminControlqueryNames type=DynaCache,*
  7. 7. set mbean <dynamic_cache_mbean>
  8. 8. $Admincontrol invoke $mbeangetCacheStatisticsNames
  9. 9. AdminControl invoke $mbeangetCacheInstanceNames
  10. 10. $AdminControl invoke $mbeangetAllCacheStatistics
  11. 11. $AdminControl invoke $mbeangetAllCacheStatistics "services/cache/servletInstance_4"
  12. 12. $AdminControl invoke $mbeangetCacheStatistics {"DiskCacheSizeInMB ObjectsReadFromDisk4000K RemoteObjectMisses"}
  13. 13. $AdminControl invoke $mbeangetCacheStatistics {services/cache/servletInstance_4 "ExplicitInvalidationsLocalCacheHits"} </li></li></ul><li>PMI Counters<br />

×