【发布时间】:2014-12-16 03:27:42
【问题描述】:
我遇到了 ehcache 的问题,我已将缓存设置为永久缓存,并且我正在将 JVM 逐个弹回以“不停机”,而这实际上并没有清除我的 ehcache 并重新加载新对象..
<cache name="SampleServerStartupCache" maxElementsInMemory="10000" eternal="true" overflowToDisk="true" maxElementsOnDisk="10000000"
diskPersistent="false" memoryStoreEvictionPolicy="LRU" diskExpiryThreadIntervalSeconds="120" />
我相信当缓存设置为永恒=“真”时,JVM 的重新启动应该刷新并加载新对象。但是,为了避免停机,我们将 JVM 一个一个地反弹,这会在干净重启之间产生影响吗?
【问题讨论】:
标签: ehcache