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 handy 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:
CONNECTIONS 32
FILES 1024
DAT_MEMORY 100 MB
IDX_MEMORY 100 MB
SORT_MEMORY 100 MB
Small Device Example
On a small device, you can reduce RAM usage to a maximum of around 60 MB using the following settings:
CONNECTIONS 5
FILES 60
DAT_MEMORY 10 MB
IDX_MEMORY 10 MB
SORT_MEMORY 10 MB
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:
CONNECTIONS 300
FILES 600
DAT_MEMORY 500 MB
IDX_MEMORY 500 MB
SORT_MEMORY 500 MB
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:
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.