2017-10-12 84 views
0

我的Ehcache(2.10.4)在默認情況下一直在使用堆內存,在同樣的情況下配置堆內存的過程是什麼?如何配置卸載內存?

相同的EHCache配置:

<defaultCache 
    maxElementsInMemory="8000" 
    maxElementsOnDisk="10000" 
    eternal="false" 
    timeToIdleSeconds="3600" 
    timeToLiveSeconds="3600" 
    overflowToDisk="true" 
    diskPersistent="false" 
    diskExpiryThreadIntervalSeconds="120" 
    memoryStoreEvictionPolicy="LRU" 
/> 

有什麼需要配置離堆內存來完成。

回答

0

Ehcache 2.x只提供offheap支持作爲商業功能。 但是Ehcache 3.x提供它作爲開源版本的一部分。