Troubleshooting
Problem
There are statements in "Distributed BigMemory Max Configuration Guide" (http://terracotta.org/documentation/4.0/bigmemorymax/configuration/distributed-configuration#incompatible-configuratio) as follows.
-----------------------------------
Incompatible Configuration
For any clustered cache, you must delete, disable, or edit configuration elements in ehcache.xml that are incompatible when clustering with Terracotta. Clustered caches have a <terracotta/> or <terracotta clustered="true"> element.
The following Ehcache configuration attributes or elements should be deleted or disabled:
- Replication-related attributes such as replicateAsynchronously and replicatePuts.
- The attribute MemoryStoreEvictionPolicy must be set to either LFU or LRU. Setting MemoryStoreEvictionPolicy to FIFO causes the error IllegalArgumentException.
-----------------------------------
1) The document states either LRU or LFU can be set to MemoryStoreEvictionPolicy but the following error comes up when LFU is set to MemoryStoreEvictionPolicy.
-----------------------------------
Warning: Error while creating store asynchronously for Cache: CachePerson
net.sf.ehcache.config.InvalidConfigurationException: There is one error in your
configuration:
* CacheManager configuration: Policy 'LFU' is not a supported memory store eviction policy.
at org.terracotta.modules.ehcache.store.ClusteredStore.validateConfig(ClusteredStore.java:236)
at org.terracotta.modules.ehcache.store.ClusteredStore.<init>(ClusteredStore.java:121)
at org.terracotta.modules.ehcache.store.EnterpriseClusteredStore.<init>(EnterpriseClusteredStore.java:128)
at ......
-----------------------------------
2) The document also states "MemoryStoreEvictionPolicy to FIFO causes the error IllegalArgumentException." but actually "net.sf.ehcache.config.InvalidConfigurationException" instead is thrown when FIFO is set to MemoryStoreEvictionPolicy.
Document Location
Worldwide
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
20 March 2025
UID
ibm17195669