If you are a Managed Hosting customer, this topic doesn't apply to you.
Edit the cache-settings.properties File
- Open the cache-settings.properties file in the following directory:
- Edit the parameters using the information in the following table, which describes each parameter.
Parameter Name Description maxElementsInMemory (elements) Maximum number of objects that will be created in memory eternal Whether elements are eternal
If true, timeouts will be ignored and the element will never expire.
timeToIdleSeconds Maximum amount of time between accesses before an element expires timeToLiveSeconds Maximum amount of time between creation and expiration before an element expires overflowToDisk Whether elements can overflow to disk when the memory store has reached the maxInMemory parameter limit evictionPolicy Policy to be enforced when the maxElementsInMemory parameter limit is reached
The default policy is Least Recently Used (specified as LRU).
- Save and close the file.
- Restart the application server(s).