OSCache集群环境下缓存同步的问题

通过OSCache+jgroups来实现集群环境下的缓存同步,在xp的两台机子上进行测试,完成正常,当风别启动两台机子后,oscache.log日志分别是这样的:


[2013-03-19 17:45:56] [INFO] (com.opensymphony.oscache.plugins.clustersupport.JavaGroupsBroadcastingListener.memberJoined:189) - A new member at address 'PC2011-61182' has joined the cluster
[2013-03-19 17:45:56] [INFO] (com.opensymphony.oscache.plugins.clustersupport.JavaGroupsBroadcastingListener.initialize:117) - JavaGroups clustering support started successfully
[2013-03-19 17:45:56] [INFO] (com.opensymphony.oscache.plugins.clustersupport.AbstractBroadcastingListener.<init>:35) - AbstractBroadcastingListener registered
[2013-03-19 17:54:35] [INFO] (com.opensymphony.oscache.plugins.clustersupport.JavaGroupsBroadcastingListener.memberJoined:189) - A new member at address 'PC2010121618vuc-14784' has joined the cluster
[2013-03-19 17:54:35] [INFO] (com.opensymphony.oscache.plugins.clustersupport.JavaGroupsBroadcastingListener.memberJoined:189) - A new member at address 'PC2010121618vuc-14784' has joined the cluster
[2013-03-19 17:55:10] [INFO] (com.opensymphony.oscache.plugins.clustersupport.JavaGroupsBroadcastingListener.memberJoined:189) - A new member at address 'PC2010121618vuc-26060' has joined the cluster
[2013-03-19 17:55:10] [INFO] (com.opensymphony.oscache.plugins.clustersupport.JavaGroupsBroadcastingListener.memberJoined:189) - A new member at address 'PC2010121618vuc-26060' has joined the cluster



[2013-03-19 17:55:20] [INFO] (com.opensymphony.oscache.plugins.clustersupport.JavaGroupsBroadcastingListener.memberJoined:189) - A new member at address 'PC2010121618vuc-26060' has joined the cluster
[2013-03-19 17:55:20] [INFO] (com.opensymphony.oscache.plugins.clustersupport.JavaGroupsBroadcastingListener.initialize:117) - JavaGroups clustering support started successfully
[2013-03-19 17:55:21] [INFO] (com.opensymphony.oscache.plugins.clustersupport.AbstractBroadcastingListener.<init>:35) - AbstractBroadcastingListener registered

有A new member at address 'PC2010121618vuc-26060' has joined the cluster
[2013-03-19 17:55:20] [INFO] 这样的字样说明两台机子都加入到了集群下,但是当在linux上的两台机子上进行测试的时候,一台机子启动的时候有上面这条语句出来了,但是另外一台启动就没有,结果就导致同步不起作用,现在不清楚为什么这个没显示出来,不知道哪位弄过OSCache集群环境下的同步,希望指点一下

没碰到这类问题,但是依据windows和linux更换平台就出问题这个现象,一般是和操作系统的网络配置有关,linux的/etc/host或网卡配置检查一下,包括localhost要能够解析。