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)

FrankenPHP Worker Mode vs Classic PHP-FPM 8.3 for Sylius 2.x

Trade 94 MB cold PHP-FPM workers for 138 MB persistent FrankenPHP threads that keep the Symfony DI container booted in RAM.

138 MB/thread · 2.5-3.0x req/s density · Zero kernel reboot tax

FrankenPHP Worker Mode vs Classic PHP-FPM 8.3 for Sylius 2.x
Telemetry verified 2026-11-04 by SymfonyCart Matrix.

Eliminating Symfony Container Boot Overhead on Every Request

Classic PHP-FPM rebuilds Symfony service definitions, Doctrine metadata mappings, and Twig environment state on every request unless heavily masked by OPcache preload. FrankenPHP worker mode boots the Sylius 2.x kernel once per Go/PHP thread and serves thousands of requests before graceful recycling.

Calculating Thread Count vs Worker RSS Drift

Because persistent threads retain compiled Twig templates, serializer metadata, and Doctrine proxies in heap, budget 138 to 176 MB per FrankenPHP thread versus 94 MB per classic PHP-FPM child. Configure max_requests inside Caddyfile worker directives to bound long-term heap growth.

Measured Thresholds & Configuration

Runtime ModeMemory per WorkerThroughput per Worker100 req/s Pool Size
PHP-FPM 8.3 (OPcache Preload)94 MB average RSS4.5 req/s sustained23 pm.max_children (~2.1 GB)
FrankenPHP Worker Mode138 MB persistent RSS12.5 req/s sustained8 threads (~1.1 GB)
FrankenPHP + B2B API Platform176 MB persistent RSS9.0 req/s sustained12 threads (~2.1 GB)
138 MB/thread · 2.5-3.0x req/s density · Zero kernel reboot tax Launch ChemiCloud ($4.49/mo)UltaHost VDS ($41.50/mo)