LATEST VERSION: 8.2.8 - CHANGELOG
Pivotal GemFire® v8.2

LruEntriesLimit

LruEntriesLimit

This attribute sets the maximum number of entries to hold in a caching region. When the capacity of the caching region is exceeded, a least-recently-used (LRU) algorithm is used to evict entries.

Note: This is a tuning parameter that affects system performance.

When eviction is configured, memory consumption or entry count is monitored and, when capacity is reached, GemFire makes way for new entries by removing or overflowing the stalest LRU entries to disk.

If you use disk data overflow to supplement memory for your data cache, make sure you have enough disk space to store the data.

This declaration limits the region to 20,000 entries:

<region-attributes lru-entries-limit="20000"
     initial-capacity="20000"
     load-factor="1">
</region-attributes>

Evicted entries can be destroyed or moved to disk as an extension of the cache. See DiskPolicy.

Note: When CachingEnabled is false, do not set the LruEntriesLimit attribute. An IllegalStateException is thrown if the attribute is set.

See also Controlling Cache Size.