信息: Updating stored schema 2012-12-12 21:06:43 net.sf.ehcache.store.offheap.search.Slf4jLoggerFactory$Logger info 信息: Updating stored schema 2012-12-12 21:07:02 net.sf.ehcache.store.offheap.search.Slf4jLoggerFactory$Logger info 信息: Updating stored schema 2012-12-12 21:07:02 net.sf.ehcache.store.offheap.search.Slf4jLoggerFactory$Logger info 信息: Updating stored schema 2012-12-12 21:08:05 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter 信息: Recovery progress 10% 2012-12-12 21:08:30 net.sf.ehcache.store.offheap.search.Slf4jLoggerFactory$Logger info 信息: Updating stored schema 2012-12-12 21:09:44 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter 信息: Recovery progress 20% 2012-12-12 21:11:45 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter 信息: Recovery progress 30% 2012-12-12 21:11:55 net.sf.ehcache.store.offheap.search.Slf4jLoggerFactory$Logger info 信息: Updating stored schema 2012-12-12 21:13:26 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter 信息: Recovery progress 40% 2012-12-12 21:15:34 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter 信息: Recovery progress 50% 2012-12-12 21:17:30 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter 信息: Recovery progress 60% 2012-12-12 21:19:09 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter 信息: Recovery progress 70% 2012-12-12 21:21:05 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter 信息: Recovery progress 80% 2012-12-12 21:23:21 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter 信息: Recovery progress 90% 2012-12-12 21:24:08 net.sf.ehcache.store.offheap.search.Slf4jLoggerFactory$Logger info 信息: Updating stored schema 2012-12-12 21:25:20 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter 信息: Recovery progress 100% recover cost = 1161304, cache.size = 2800000
cm = CacheManager.create(); Cache cache2 = cm.getCache("test"); if(cache2!=null && cache2.getSize()>0) { return cache2; } ccf = new CacheConfiguration(); ccf.persistence(new PersistenceConfiguration().strategy(Strategy.LOCALRESTARTABLE).synchronousWrites(false)); ccf.setName("test"); ccf.setMaxEntriesLocalHeap(5000); ccf.setOverflowToOffHeap(Boolean.TRUE); ccf.setMaxMemoryOffHeap("20000m"); Searchable searchable = new Searchable(); //[color=red]fieldNames.length > 100[/color] for(String fieldName : fieldNames) { searchable.addSearchAttribute(new SearchAttribute().name(fieldName)); } ccf.addSearchable(searchable); cache = new Cache(ccf); cm.addCache(cache); return cache;