Increasing Java memory limits

Increase the memory allocation pool for the Tomcat server.

Modify the JAVA_OPTS variable to increase the amount of memory available toIBM® UrbanCode™ Release. The JAVA_OPTS variable is used by the Tomcat server to configure its environment when it starts.

  1. Open the /UCR_install/server/tomcat/bin/setenv.bat file
  2. Modify the -Xms variable.
    The -Xms variable is the initial heap size in bytes. The format is -Xmssize. The size must be a multiple of 1024 and be at least 1 MB. To indicate kilobytes append k; for megabytes append m, and for gigabytes append g. There is no space between -Xms and size.
    For example, you might use the following code fragment to set the initial heap size to 256 megabytes: set JAVA_OPTS=%JAVA_OPTS% -Xms256m.
  3. Modify the -Xmx variable.
    The -Xmx variable is the maximum heap size in bytes. The maximum heap size must be equal to or greater than the initial heap size.