Broker 10.15 | webMethods Broker Documentation | Administering webMethods Broker | Managing Broker Servers | Configuring the Cache Settings | Modifying the Cache Size
 
Modifying the Cache Size
To modify the cache size, you must modify the storage session parameters in the Broker Server configuration file (awbroker.cfg). For more information, see webMethods Broker Server Configuration Parameters.
As shown in the example below, the "max_cache_size" argument is a name-value pair that you append to the session URL as a query string. The value of this argument specifies the maximum size of the cache in megabytes.
session-config=qs:///var/opt/BrokerStorage/BrokerConfig.qs?max_cache_size=16
session-data=qs:///var/opt/BrokerStorage/BrokerData.qs?async,max_cache_size=512
If the max_cache_size argument is omitted from the URL, the default cache size is used. See Default Cache Settings.
Note:
Prior to version 6.5, a global parameter in the awbroker.cfg file was used to specify the size of the cache. This parameter (storage-max-cache-size) has been deprecated. If present in the configuration file, it will be overridden by the value specified in max_cache_size.
*To modify the cache size
1. Stop the Broker Server.
2. On the machine where Broker Server is installed, locate the Broker Server's configuration file (awbroker.cfg) and make a backup copy.
3. Open the configuration file with a text editor and locate the session-config and session-data parameters, which are underscored in the example below. (If you are running a combined storage session, your configuration file will contain only the session-config parameter.)
.
.
.
snmp=1
eventlog=1
internal=1
session-config=qs:///var/opt/BrokerStorage/BrokerConfig.qs
session-data=qs:///var/opt/BrokerStorage/BrokerData.qs
4. To specify the cache size for a storage session, append the "max_cache_size=nnn" name-value pair to the session's URL, where nnn specifies the cache size in megabytes.
Because the storage session is specified as a URL, you must include the "?" separator if max_cache_size is the first argument in the query string. If the URL already includes a query string, use the "," character to separate max_cache_size from the other arguments in the string. Both forms are shown in the example below.
.
.
.
snmp=1
eventlog=1
internal=1
session-config=qs:///var/opt/BrokerStorage/BrokerConfig.qs?max_cache_size=16
session-
data=qs:///var/opt/BrokerStorage/BrokerData.qs?async,max_cache_size=512
5. Save the configuration file.
6. Restart the Broker Server.