简体   繁体   中英

How to configure off-heap memory?

My Ehcache(2.10.4) has been utilising heap memory a lot by default, what is the procedure to configure off-heap memory on the same?

EHCache Config of the same:

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

Is there something that needs to be done for configuring off-heap memory.

Ehcache 2.x offers offheap support only as a commercial feature. However Ehcache 3.x offers it as part of the open source version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM