Caching On Zos


Published on

Why you should consider using WebSphere Dynacache to improve performance and save money with WebSphere Application Server for z/OS.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Caching On Zos

  1. 1. Websphere Caching on zOS<br />Architect: Rohit Kelapure<br /> Advisory Software Engineer <br /> Dynacache/DRS Team Lead and Architect <br />
  2. 2. Dynamic Caching<br />2<br />IBM Confidential<br />February 14, 2010<br />
  3. 3. 0verview<br />3<br />IBM Confidential<br />February 14, 2010<br />
  4. 4. Features<br />4<br />IBM Confidential<br />February 14, 2010<br />
  5. 5. 5<br />IBM Confidential<br />WebSphere Application Server Dynacache Service Summary<br />February 14, 2010<br /><ul><li>Provides core caching infrastructure for Base and ND WAS products.
  6. 6. Operates in JVM Memory and/or Disk
  7. 7. Distributed replication support for “expensive to recreate” entries
  8. 8. Access via J2EE APIs or cachespec.xml
  9. 9. Caches at multiple tiers
  10. 10. Servlets/Portlets/JSPs page
  11. 11. Struts and Tiles responses
  12. 12. WebSphere Commands
  13. 13. Web Services (Server & Client)
  14. 14. Java Objects (Distributed Maps)
  15. 15. Supports multiple cache instances
  16. 16. Enhanced disk cache
  17. 17. Works on ALL platforms including zOS
  18. 18. Replication across cells and coregroups.
  19. 19. Interoperates with External Caches </li></li></ul><li>End to End Caching with WebSphere zOS<br />6<br />IBM Confidential<br />February 14, 2010<br />Caching goes beyond an applications&apos; own infrastructure<br />
  20. 20. WebSphere External Caching<br />Cache static and Dynamic Content at the Edge<br /> Web Server plugin Edge Side Include (ESI) cache<br />Using WebSphere Caching Proxy<br />7<br />IBM Confidential<br />February 14, 2010<br />
  21. 21. zOS web server plugin ESI cache<br />Static file caching<br />Plugin-cfg.xml<br />&lt;Property Name=&quot;ESIEnable&quot; Value=&quot;true&quot;/&gt; <br />&lt;Property Name=&quot;ESIMaxCacheSize&quot; Value=&quot;10240&quot;/&gt; (10 MB)<br />&lt;Property Name=&quot;ESIInvalidationMonitor&quot; Value=“true&quot;/&gt;<br />Dynamic Caching<br />Caching of a whole page and its&apos; fragments .<br />8<br />IBM Confidential<br />February 14, 2010<br />
  22. 22. ZOS FRCA Cache* new in v7<br />Requests served from the FRCA cache are about 8% the cost of requests served from the Dynamic Cache <br />Reduction in CP and ZAAP CPU% leading to cost savings<br />Display FRCA cache statistics <br />From MVS console: f &lt;serverName&gt;,display,frca<br />From MVS console: display tcpip,,netstat,cach<br />From TSO: netstatcach<br />9<br />IBM Confidential<br />February 14, 2010<br />
  23. 23. 10<br />IBM Confidential<br />Monitoring Servlet, Command & WebServices cache instances<br />CacheMonitorapplication shipped with WAS install in the installableAppsdir.<br />Provides <br />Real-time view of the current state of dynamic cache<br />Verify the configuration of dynamic cache<br />Verify the cache policies<br />Monitor cache statistics<br />Monitor the data flowing through the cache<br />Monitor the data in the edge cache<br />View the data offloaded to the disk<br />Manage the data in the cache<br />February 14, 2010<br />
  24. 24. 11<br />IBM Confidential<br />Administration & Monitoring Object Cache instances<br />Extended Cache Monitor<br /><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 Dynacache customers that use the DistributedMap API leverage the ECM in development and production.<br />February 14, 2010<br />
  25. 25. 12<br />IBM Confidential<br />Dynacache mbean for runtime control<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 />February 14, 2010<br />
  26. 26. 13<br />IBM Confidential<br />Cache Policies <br /><ul><li>The Cachespec.xml is a deployable, XML cache policy file that
  27. 27. contains configuration entries for caching definitions and rules for Servlet/JSP/ JSTL/ Portlet caching
  28. 28. Allows application developers to specify:
  29. 29. What is going to be cached (Servlets, JSP, Java commands, web services etc.)
  30. 30. Where it is going to be cached (memory or disk)
  31. 31. When cache items are to be evicted (invalidation)
  32. 32. How cache entries are related (invalidation dependencies).</li></ul>February 14, 2010<br />
  33. 33. Why Dynacache ?<br />Differentiation<br />zOS only caching features like FRCA leveraging native platform abilities.<br />Performance & Cost<br /> Significant potential to reduce CP & zAAP CPU utilization& reduce response time.<br />Completeness<br />Caching at all tiers of the zOS platform (Webserver, CR and SR regions)<br />Caching different types of objects from POJOs, EJB, Servlet, Portlet & WebServices responses.<br />High Availability <br />Replication ability to keep caches consistent across cells and clusters<br />Persistence:<br />Industry leading disk cache persistence capability. <br />Consumability<br />Drop in performance improvements by adding cachespec.xml to the application. <br />APIs implementing java.util.Map interface leading to easy developer adoption. <br />Customized for increases QOS<br />Integration with in memory data grids like WebSphere eXtreme Scale.<br />Stability: <br />Employed by customers in production since WebSphere 3.5. <br />14<br />IBM Confidential<br />February 14, 2010<br />
  34. 34. 15<br />IBM Confidential<br />Thanks<br />February 14, 2010<br />