Project

General

Profile

« Previous | Next » 

Revision 8b9e2e71

Added by Andreas Kohlbecker almost 6 years ago

ref #7729 setting maxEntriesLocalHeap for the cdmDefaultCache and activating ehcache jmx management beans for the CdmTransientEntityCacher

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/config/EhCacheConfiguration.java
64 64

  
65 65

  
66 66
    /**
67
     * Returns the default cache configuration.
67
     * Returns the default cache configuration for the cache
68
     * named {@link CdmCacher#DEFAULT_CACHE_NAME "cdmDefaultCache"}
68 69
     *
69 70
     * @return
70 71
     */
......
77 78

  
78 79
        CacheConfiguration cc = new CacheConfiguration(CdmCacher.DEFAULT_CACHE_NAME, 500)
79 80
                .memoryStoreEvictionPolicy(MemoryStoreEvictionPolicy.LFU)
81
                .maxEntriesLocalHeap(10) // avoid ehache consuming too much heap
80 82
                .eternal(false)
81 83
                // default ttl and tti set to 2 hours
82 84
                .timeToLiveSeconds(60*60*2)

Also available in: Unified diff