Configuring memory size for plug-ins
You can configure the amount of JAVA memory available to plug-ins for optimum plug-in performance.
A Java Virtual Machine (JVM) launches the Goovy runtime program which executes the IBM® UrbanCode™
Release plug-ins. The following properties can be used to configure the amount of JVM memory used by the
IBM UrbanCode
Release plug-ins:
groovy.memory.xmn=sizeunit_type
groovy.memory.xms=sizeunit_type
groovy.memory.xmx=sizeunit_type
- xmn
- Heap size for the young generation
- xms
- Initial Java heap size
- xmx
- Maximum heap size
Where size is a whole number of the unit_type value. The
value for unit_type can be:
- k to indicate kilobytes
- m to indicate megabytes
- g to indicate gigabytes
groovy.memory.xmx=2g or groovy.memory.xms=512m.
You can also specify inherit for the size variable, for
example: groovy.memory.xmx=inherit. If inherit is
specified, the memory values are inherited from the JAVA_OPTS environment variables or passed by the
JVM.You must restart the server for the values to take affect.
To avoid out-of-memory errors and performance issues, a minimum of the following JVM settings
should be
specified:
groovy.memory.xmx=512m
groovy.memory.xms=256m
groovy.memory.xmn=128m