IBM Support

webMethods Knowlegebase : Configuration for MemoryStoreEvictionPolicy. (1752135)

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

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSVYEV","label":"IBM webMethods Integration"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"BigMemory Max (TAB)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Red Hat Enterprise Linux"}],"Version":"4.0.1"},{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSFIWYE","label":"IBM webMethods B2B"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"BigMemory Max (TAB)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Red Hat Enterprise Linux"}],"Version":"4.0.1"},{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSQG2X","label":"IBM webMethods Managed File Transfer"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"BigMemory Max (TAB)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Red Hat Enterprise Linux"}],"Version":"4.0.1"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
20 March 2025

UID

ibm17195669