0 0

ehcache配置集群之后,一台机子加入缓存,另外一台获取缓存,一直获取不到数据,请教各位大拿原因?5

Server1配置:
<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="peerDiscovery=manual,        
        rmiUrls=//10.166.126.112:40000/UserCache" />
<cacheManagerPeerListenerFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
properties="hostName=10.166.126.106,port=40000, socketTimeoutMillis=120000" />
<cache name="UserCache" maxElementsInMemory="1000" eternal="false"
timeToIdleSeconds="100000" timeToLiveSeconds="100000" overflowToDisk="false">
<cacheEventListenerFactory
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" />
</cache>
在本地存缓存都正常,另外一台主机只是将IP换一下而已,但是获取UserCache的缓存就是获取不到?产生问题的原因是什么呢?
2012年3月09日 11:55

1个答案 按时间排序 按投票排序

0 0

据说ehcache的开源免费版本对集群支持很弱,不是真正意见的集群,需要terracotta收费版本才行,真正可用的免费缓存集群只有memcache,据说ehcache速度比emechache快很多,但因为许可的问题,我们仍然选择了memcache.

2012年3月10日 20:34

相关推荐

Global site tag (gtag.js) - Google Analytics