Pages

Friday, March 5, 2010

Dynacache cache content not replicating

In order to replicate content across WebSphere cluster members, a DynaCache cache instance has to be setup for replication. The cache instance has to be associated with a replication domain and optionally also a sharing type i.e. a replication type. Even after doing this many time cache replication does not seem to work across cluster members.

This is a checklist of things to look @ if cache content is not replicating

1. Check the configuration of the cache instance. Cache instance should be associate with a replication domain when the cache-instance is defined.

2. Check the sharing type of the objects put int the cache. Note that the sharing type of a cache object specified on an API call or the cachespec.xml file overrides the sharing type of the cache instance which in turn overrides of the sharing type of the replication domain.

3. DRS may not have finished bootstrapping the cache instances. Take a look @
http://tinyurl.com/yzyv7q9 
In WAS7 you can set the JVM custom property "com.ibm.ws.cache.CacheConfig.createCacheAtServerStartup" to "true"


4. If all else fails turn on tracing for "com.ibm.ws.cache.*" and grep the trace*.log for "publish" to see if Dynacache is pushing the objects to DRS.


In 9 times out of 10, cache content not replicating false into the first three reasons given above.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.