In order to change the java heap size for an AppServer, modify JVMARGS in <DLC>/properties/ubroker.properties file under specific broker definition section.
Use the following parameters:
- -Xms <size> sets initial Java heap size
- -Xmx <size> sets maximum Java heap size
For example, to set the specific AppServer (e.g.: asbroker1 ) to use the initial heap space of 128MB and the maximum of 1GB:
It is recommended to use the same size for the minimum and maximum heap size to reduce the periodic pause time that happens as a result of the cleaning up of the garbage collection to free-up the heap space.
After the changes are made, re-start the AdminServer in order for the settings to take effect.
To monitor the java heap / memory statistics associated with the AppServer Broker to determine if the java process is close to exceeding the current heap, refer to Article: