Monitor WCS Cache

Posted by Hariharan Vadivelu 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
install it and then copy the cachemonitor EAR file.

Step 1: Log on to WAS Admin console.

Step 2: Execute all the steps as mentioned in following Info Center link

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.

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.


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

  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.

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

    Exception caught in

    any idea?

  4. Hi Vivek,

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


  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

  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 !

    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

  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

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