Elements in the cacheoverride.xml file
You can modify elements in the SearchIndexCache section
of cacheoverride.xml.
The following table describes some of the elements that
you can modify in the SearchIndexCache section of cacheoverride.xml.
| Element | Description |
|---|---|
| maxElementsInMemory | Required. Specifies the maximum number
of elements that can be stored in memory. If you specify zero (0),
there is no limit on the number of elements that can be stored in
memory. By default, the value is set to |
| overflowToDisk | Required. Specifies whether or not
elements are written to disk when the memory store has reached the maxElementsInMemory limit.Valid
values are |
| maxElementsOnDisk | Required. Specifies the maximum number
of elements that can be stored on disk. If you specify zero (0), there
is no limit on the number of elements that can be stored on disk. By
default, the value is set to |
| eternal | Required. Specifies whether or not
elements are eternal. By default, the value is set to true.Note: Do
not change this default value.
|
| diskPersistent | Optional. Specifies whether or not
the disk store persists between restarts of the Java™ Virtual Machine (JVM). By default, the
value is set to false.Note: Do not change this default
value.
|
| memoryStoreEvictionPolicy | Optional. Specifies the algorithm to
be used for in-memory cache when the memory store reaches the maxElementsInMemory limit.
Valid values:
By default, the value is set to LRU. Note: Disk storage
always uses the LFU algorithm.
|
| diskSpoolBufferSizeMB | Optional. Specifies the size (in MB)
to allocate the disk store for a spool buffer. Writes are made to
this area and then asynchronously written to disk. By default, the
size is set to 30 (MB). Note: Each spool buffer is used only by its
cache. If you get OutOfMemory errors, consider lowering this value.
To improve disk store performance, consider increasing this value.
|
Note: After you create
cacheoverride.xml, you must update and rebuild the
resources.jar file.