Skip to main content
SyliusPHPRAM
SyliusPHPRAM Partner Disclosure: Outbound /go/ links marked rel="sponsored" may earn a referral commission at zero extra cost (Partner Disclosure).
Stack Matrix Hub (9)

Sizing Elasticsearch & OpenSearch Heap for Sylius 2.x Catalogs

Partition JVM Xms/Xmx heap at 50% of container budget while leaving OS page cache intact for fast Lucene facet filtering on 50k-250k SKUs.

-Xms2g -Xmx2g (50-150k SKUs) · 50% OS page cache rule · Zero swap

Sizing Elasticsearch & OpenSearch Heap for Sylius 2.x Catalogs
Telemetry verified 2026-11-04 by SymfonyCart Matrix.

When SQL LIKE & Attribute Joins Break Down on Multi-Facet Grids

Once a Sylius store passes 25,000 SKUs with multi-currency pricing and 15+ product attributes, SQL EAV joins stall category filtering. Offloading catalog search and layered navigation to OpenSearch 2.x drops facet response times below 25 ms.

The 50% JVM Heap Rule for OpenSearch Containers

Never assign more than half of OpenSearch allocated memory to -Xms/-Xmx because Lucene relies heavily on Linux mmap page cache. On a 16 GB UltaHost VDS-2, a -Xms1g -Xmx1g (2 GB container budget) or -Xms2g -Xmx2g (4 GB budget) covers 100k SKUs comfortably.

Measured Thresholds & Configuration

Catalog ScaleOpenSearch JVM (-Xms/-Xmx)OS Page Cache ReserveRecommended Host
10k - 25k SKUsOptional (Use SQL Indexes)N/AChemiCloud Cloud VPS 1 (8 GB)
50k - 100k SKUs-Xms1g -Xmx1g to -Xms2g -Xmx2g1.5 - 2.0 GB Linux cacheUltaHost VDS-2 (16 GB)
250k+ B2B SKUs-Xms4g -Xmx4g4.0+ GB Linux cacheSplit UltaHost VDS-4 (32 GB)
-Xms2g -Xmx2g (50-150k SKUs) · 50% OS page cache rule · Zero swap Launch ChemiCloud ($4.49/mo)UltaHost VDS ($41.50/mo)