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.
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.
This is good information. Thanks for sharing it. I setup cache monitor on local toolkit successfully. Thanks
ReplyDeleteThanks 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.
ReplyDeletehi Hari, After installing Extended Cache Monitor, when I click in "Compare Cache Contents" option, it throws following exception.
ReplyDeleteException caught in mbeanStats.jspcom.ibm.websphere.management.exception.AdminException: com.ibm.websphere.management.exception.ConnectorNotAvailableException
any idea?
Hi Vivek,
ReplyDeletei think the extended cache monitor is not working correctly for newer websphere versions.
Which versions do you use?
Regards
Marcel
i am unable to see 'default' cache instance , even after installing fix-pack given.
ReplyDeletePlease provide me a solution, my demo POC(proof of concept) is not working because of it.
Thank you in advance
Hari,
ReplyDeleteis 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 !
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
DeleteHi, 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
ReplyDeleteWell explained. Got to learn new things from your Blog on Coded UI.Coded UI Training in Chennai
ReplyDelete