Monitor WCS Cache

Posted by Unknown on
Cache monitor is a web application which gives you the ability to monitor object/Servlet cache in your application, it is important to note that this is not a WCS component, instead it is available for any J2ee applications in WAS environment which leverage cachespec.xml to define various caching strategy in the application. 

If you are trying to set this up on commerce toolkit it is important to note that this EAR file is not available with the commerce toolkit, you can get a copy of cache monitor EAR WAS installation from your server, It will be in the installableApps directory for either your deployment manager or stand alone application server.

I was able to get a copy from my SDP folder which get's created at the time of Commerce V7 toolkit installation, the location of the cahemonitor will typically be "C:\IBM\SDP\runtimes\base_v7\installableApps"


As an alternative option, you can always download the trial version of WAS from following location
http://www.ibm.com/developerworks/downloads/ws/was/
install it and then copy the cachemonitor EAR file.


Step 1: Log on to WAS Admin console.
https://localhost:9043/ibm/console

Step 2: Execute all the steps as mentioned in following Info Center link
http://publib.boulder.ibm.com/infocenter/wchelp/v7r0m0/index.jsp?topic=/com.ibm.commerce.admin.doc/tutorial/tdcperf1b.htm

Note: although the info center link specifies to select detailed installation, I preferred to perform a "Fast Path" installation.

Step 3: Start Cache Monitor from Enterprise applications option in WAS admin console.



One final enhancement...
There is an IBM extended cache monitor available which adds the capability to monitor the content of object cache instances and dynamic Cache mbean statistics for cache instances

Details are available at following location.
http://www.ibm.com/developerworks/websphere/downloads/cache_monitor.html


It is a good development practice to have it configured in developer toolkit to let developers take advantage of unit testing various caching parameters, remember good application development starts with early performance / unit testing.

9 comments:

  1. This is good information. Thanks for sharing it. I setup cache monitor on local toolkit successfully. Thanks

    ReplyDelete
  2. Thanks Rohit for sharing your experience, IBM constantly updates the cachemonitor EAR, you my want to get the latest and greatest copy from your IBM support team.

    ReplyDelete
  3. hi Hari, After installing Extended Cache Monitor, when I click in "Compare Cache Contents" option, it throws following exception.

    Exception caught in mbeanStats.jspcom.ibm.websphere.management.exception.AdminException: com.ibm.websphere.management.exception.ConnectorNotAvailableException

    any idea?

    ReplyDelete
  4. Hi Vivek,

    i think the extended cache monitor is not working correctly for newer websphere versions.
    Which versions do you use?

    Regards
    Marcel

    ReplyDelete
  5. i am unable to see 'default' cache instance , even after installing fix-pack given.
    Please provide me a solution, my demo POC(proof of concept) is not working because of it.
    Thank you in advance

    ReplyDelete
  6. Hari,

    is there a way to add the Cache Monitors on save server ? i am two JVMs running on same server. looking forward to your opinion. Thanks !

    ReplyDelete
    Replies
    1. you will have to have cachemonitor per WCS JVM, remember the cached data is still local to each JVM, unless you plan to use WXS as a remote cache option. in your case you will access cachemonitor by directly accessing the app server IP

      Delete
  7. Hi, on WCS8 i have a problem with cachemonitor if the instance configured in clustering. I see only the basecache from clustering members.Can someone help me ? thx HUONG

    ReplyDelete
  8. Well explained. Got to learn new things from your Blog on Coded UI.Coded UI Training in Chennai

    ReplyDelete