Broker 10.15 | webMethods Broker Documentation | Administering webMethods Broker | Managing Broker Servers | Configuring the max-memory-size Parameter
 
Configuring the max-memory-size Parameter
Use the following procedure to set the max-memory-size parameter in the Broker Server configuration file (awbroker.cfg). If you want Broker Server to allocate the specified amount of memory when it starts, enable the preallocate-memory parameter in the configuration file.
*To configure the memory parameters
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 max-memory-size parameter. If your configuration file does not include this parameter, add it to the file. For detailed descriptions of the Broker Server configuration parameters, see webMethods Broker Server Configuration Parameters.
.
.
.
snmp=1
eventlog=1
internal=1
max-memory-size=500
4. Modify the value of the max-memory-size parameter to specify the maximum amount of memory, in megabytes, that Broker Server can allocate for document storage before it begins blocking incoming documents.
The following example sets the max-memory-size parameter to 1.2 gigabytes.
.
.
.
snmp=1
eventlog=1
internal=1
max-memory-size=1200
5. If you want Broker Server to allocate this amount of memory when it starts, include the preallocate-memory parameter and set its value to 1. If you do not want to preallocate this amount of memory, set the preallocate-memory parameter to 0 or omit it from the configuration file.
.
.
.
snmp=1
eventlog=1
internal=1
max-memory-size=1200
preallocate-memory=1
Important:
If you enable the preallocate-memory parameter and Broker Server cannot obtain the amount of memory specified in max-memory-size, it will not start.
6. Save the configuration file.
7. Restart the Broker Server.