[jboss-user] [Clustering] - Re: JBoss Cache Replication not happening in a clustered env

RichardTaylor do-not-reply at jboss.com
Mon Oct 12 13:37:17 EDT 2009

I've been spending a lot of time lately looking at replicate sessions.  For troubleshooting session replication:

1. Be sure to read about session replication from  http://www.jboss.org/community/wiki/JBossAS5ClusteringGuide before you do anything.  

2. Then read about session replication in jboss cache as well http://www.jboss.org/community/wiki/JBossCacheOfficialDocumentation

3. For actual troubleshooting, once you have things configured from the above docs, I've been using the jmx-console.  Log into the JMX Console on each machine.  

First confirm that the nodes are in the same cluster at the jgroups level.
Go to jboss.jgroups -> cluster=default-SessionCache,type=channel (this may be slightly differnt for you).  Verify that "ViewAsString" contains all nodes

Second confirm that jboss cache (a layer above jgroups) sees the correct nodes and check out the http sessions.  In the JMX Console go to jboss.cache -> config=standard-session-cache,service=Cache and look at "Members", then invoke "printCacheDetailsAsHtml" near the bottom.  This will show you all sessions on that node.  If you're doing total replication (default) you should see the same session information on all nodes in this area.

Hope this helps.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259926#4259926

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259926

More information about the jboss-user mailing list