Show TOC

Memory UsageLocate this document in the navigation structure

Memory usage is directly proportional to the number of records stored in a project.

There are no configuration settings in the project server that directly set up or control RAM usage on the machine. However, the project server does count records in the system, to ensure that only one copy of a record exists in different streams.

Each ESP project launches a Java virtual machine (JVM), which runs any Java UDFs or Java internal adapters associated with the project. Memory available to the JVM is controlled by the java-max-heap option in the Deployment section of the project configuration (CCR) file; the default value is 256 MB.

If your project triggers Java out-of-memory errors, increase the heap size for the project’s JVM. For example:

<Option name="java-max-heap" value="512"/>
The CCR file default location is:
<user-home-dir>/SybaseESP/5.1/workspace/<project-name>/<project-name>>.ccr

Use the memory-reserve option to specify the amount of reserved memory, in megabytes, that you want released to shut a project for ESP down gracefully in the case that all available memory is used. The default value for this option is 0. The recommended value is 10. Only Linux and Solaris platforms support this function.