You are reading the documentation of OpenCTI 7.260309 LTS · 7.260309.0-lts.8, supported until 2027-04.Latest is 7.261119.0 →
Reference

Sizing

How much CPU, memory and disk the XTM stack needs, on one host with xtm-docker and component by component for production.

OpenCTIOpenAEVOpenCRQFor platform engineers

This page gives the CPU, memory and disk the XTM stack needs: first for the whole stack on one host with FiligranHQ/xtm-docker, then the minimum for each component when you run them on separate machines, and the settings that decide how much memory each process takes.

RAM OF THE HOST.ENVELASTICSEARCH16 GBThe minimum32 GBRecommended for production64 GB or moreELASTIC_MEMORY_SIZE=2GELASTIC_MEMORY_SIZE=4GThe value of .env.sampleELASTIC_MEMORY_SIZE=8GJava heapES_JAVA_OPTS: -Xms and -Xmx
  1. 16 GB → ELASTIC_MEMORY_SIZE=2G
  2. 32 GB → ELASTIC_MEMORY_SIZE=4G
  3. 64 GB or more → ELASTIC_MEMORY_SIZE=8G
  4. ELASTIC_MEMORY_SIZE=2G → Java heap: sets
  5. ELASTIC_MEMORY_SIZE=4G → Java heap: sets
  6. ELASTIC_MEMORY_SIZE=8G → Java heap: sets
Elasticsearch takes the largest share of memory, so set its Java heap, ELASTIC_MEMORY_SIZE, from the RAM of the host

One host with xtm-docker

ResourceMinimumRecommended
RAM16 GB32 GB for production
Free disk50 GB

Elasticsearch takes the largest share. Its Java heap is ELASTIC_MEMORY_SIZE in .env, 4G in .env.sample. Set it from the RAM of the host:

RAM of the hostELASTIC_MEMORY_SIZE
16 GB2G
32 GB4G
64 GB or more8G
Check the heap Elasticsearch runs with
docker compose exec elasticsearch sh -c 'echo $ES_JAVA_OPTS'

It prints -Xms2G -Xmx2G for ELASTIC_MEMORY_SIZE=2G.

Each component, for production

The minimum for each component on its own machine or container, as the OpenCTI and OpenAEV documentation give them, and for OpenCRQ from the defaults of its image. A service shared by several modules holds the data of all of them.

Shared services

ServiceNeeded byCPURAMDisk typeDisk space
Elasticsearch or OpenSearchOpenCTI, OpenAEV2 cores8 GB or moreSSD16 GB or more
PostgreSQLOpenAEV, OpenCRQ, XTM One2 cores8 GB or moreSSD16 GB or more
RedisOpenCTI1 core1 GB or moreSSD16 GB or more
RabbitMQOpenCTI, OpenAEV1 core512 MB or moreStandard2 GB or more
S3 storageOpenCTI, OpenAEV, OpenCRQ1 core128 MB or moreSSD16 GB or more

Platforms and integrations

The platforms, workers and integrations keep no data on disk: their state is in the shared services.

OpenCTI
ComponentCPURAM
OpenCTI platform2 cores8 GB or more
Each worker1 core128 MB or more
Each connector1 core128 MB or more
XTM Composer1 core128 MB or more
OpenAEV
ComponentCPURAM
OpenAEV platform2 cores8 GB or more
Each injector1 core128 MB or more
Each collector1 core128 MB or more
OpenCRQ
ComponentCPURAM
OpenCRQ, the opencrq containerNot documentedAbout 5 GB

The container runs two Node.js processes, the worker with a heap of 4,096 MB and the HTTP server with a heap of 512 MB, and a small process that supervises them. At peak, OpenCRQ opens about 50 PostgreSQL connections: count them in max_connections. See Configure OpenCRQ.

No figures are documented yet for XTM One and its worker, nor for the PostgreSQL and Redis load XTM One adds.

What decides the memory of each process

ProcessSettingIn xtm-docker
OpenCTI platformThe Node.js heap limit, NODE_OPTIONS=--max-old-space-size=<MB>. Raise it if the platform stops with out-of-memory errors--max-old-space-size=8096, about 8 GB
ElasticsearchThe Java heap, ES_JAVA_OPTS-Xms and -Xmx set to ELASTIC_MEMORY_SIZE
RedisThe length of the OpenCTI event stream, REDIS__TRIMMING: 2,000,000 events by default, about 8 GB of memoryDefault
RabbitMQRabbitMQ takes memory up to its own threshold: set it together with the memory limit of its containerDefault
S3 storageRustFS has no memory setting in xtm-docker: limit it with the memory limit of its containerDefault
OpenCRQThe heaps of its two processes: 4,096 MB for the worker (PROCESS_MANAGER__SPLIT__WORKER__MEMORY) and 512 MB for the HTTP server (PROCESS_MANAGER__SPLIT__HTTP__MEMORY)Default
Workers, connectors, collectors, injectorsPython processes: limit their memory with the limits of their containersNo limit
PostgreSQLmax_connections: OpenAEV opens up to 20 connections, XTM One up to 35 per process over its two web workers and its worker, OpenCRQ about 50 at peak200

Workers

xtm-docker starts three OpenCTI workers. More workers write faster, until the throughput of Elasticsearch becomes the limit. Count one OpenCTI platform for every three workers, and no more than three to four workers per platform: nine workers are spread over three platforms. Why, and how the platform and its workers share the work, is in OpenCTI architecture.

To change the number of workers in xtm-docker, set replicas under worker > deploy in docker-compose.override.yml, as Change the stack without editing docker-compose.yml describes, then run docker compose up -d. To add platforms, see Scale: workers, platforms and clusters.

What's next

NextTopologies: one host, a cluster, Kubernetes
Deploy
Install, configure, secure, scale and upgrade the platform.

Published

Overview
Run the XTM platform locally
OverviewDeploy with an AI agent