Skip to main content

Configure memory usage

Memory usage in the FairCom server can be adjusted to match the capabilities of your hardware.

The defaults are 100 MB Data Cache, 100 MB of Index Cache, 100 MB of Sort Cache, 1024 maximum files (tables plus indexes) and 32 simultaneous connections. This configuration is designed for medium-size environments, such as edge gateways.

Increasing the values for files, connections, and caches causes the FairCom server to use additional RAM. Conversely decreasing these values reduces the RAM consumed.

The number of connections and files are the greatest factors in determining RAM because each connection consumes RAM for each file that is opened.

The Administrator's Guide includes a Server Memory Calculations page to help estimate your memory footprint for a given configuration.

Default memory settings

You can manage the RAM consumed by the FairCom server by changing the settings in the ctsrvr.cfg file. The following default settings consume approximately 8 GB RAM when all connections and files are open.

Table 1. Default memory settings

Setting

RAM

CONNECTIONS

32

FILES

1024

DAT_MEMORY

100 MB

IDX_MEMORY

100 MB

SORT_MEMORY

100 MB



Example 1. Small device example

On a small device, you can reduce RAM usage to a maximum of around 60 MB using the following settings:

Table 2. Small device example

Setting

RAM

CONNECTIONS

5

FILES

60

DAT_MEMORY

10 MB

IDX_MEMORY

10 MB

SORT_MEMORY

10 MB





Example 2. Large hub example

On a large computer, you can increase the settings to handle many more tables, indexes, and concurrent connections. The settings below are an example for a larger integration hub that consumes a maximum of around 30 GB RAM when all connections and files are open:

Table 3. Large hub example

Setting

RAM

CONNECTIONS

300

FILES

600

DAT_MEMORY

500 MB

IDX_MEMORY

500 MB

SORT_MEMORY

500 MB





Example 3. Large data center example

On a high-end server, you can increase the settings to handle very large numbers of tables, indexes, concurrent connections, and cache. The upper limits are 1 million files and 4096 connections.

The settings below are an example for a huge server that consumes a maximum of around 2 TB RAM when all connections and files are open:

Table 4. Large data center example

Setting

RAM

CONNECTIONS

1000

FILES

2500

DAT_MEMORY

50000 MB

IDX_MEMORY

50000 MB

SORT_MEMORY

50000 MB





To learn more about these settings, see:

In addition to the number of files and users, many parameters, such as those that affect cache sizes, can be adjusted to further tailor the FairCom Server to your needs.

For more details, see Caching and data integrity recommendations.