Updating cache sizes
You can independently configure the size of each cache that is used in HCL Commerce. The size of each cache is defined by its number of entries and by its size in megabytes (MB). The number of entries is a maximum size, not the current actual size, and the size in MB is the maximum memory footprint.
Note: With version 9.1.4.0, local HCL Cache caches automatically adjust their
maximum sizes lower or higher, depending on the amount of available free memory in the Java Virtual
Machine (JVM).
The method to update cache sizes depends on the pod type, and varies between WebSphere Application Server V8.5.5 Liberty (Search server, Store server and Customization server) and WebSphere Application Server (Transaction server) pods.
Procedure
Update the size of the cache depending on the application server that is
used.
Server type | Cache settings |
---|---|
WebSphere Application Server V8.5.5 Liberty (Search server, Store server and Customization server) | Each cache is defined by its JNDICache , and is represented by an entry in
the liberty_installdir/usr/servers/default/server.xml
configuration file by an entry similar to the
following:
You can update the number of entries and/or the size in MB. To apply the update to a new size:
|
WebSphere Application Server (Transaction server) | A Transaction server run engine command,
update-objectcache-size, is available to update cache sizes. With this command,
you can update the number of entries and/or the cache size in MB. For more information on Transaction server run engine commands, see Transaction server Run Engine commands. Some examples of using this command are as follows:
|