Stack Matrix Hub (8)
Isolating PrestaShop Multistore & ERP Sync Memory Spikes
Stop stock/price Webservice XML imports and multi-shop cron jobs from starving live shopper checkout workers.
230-290 MB/worker · 512M memory_limit · Separate Pool
Webservice API & Multistore Kernel Overhead
Running 3 to 10 regional storefronts under PrestaShop Multistore multiplies module hook execution and price-rule evaluations. When an ERP pushes 5,000 stock updates via /api/products, PHP worker RSS regularly reaches 260-290 MB.
Dedicated FPM Pool for /api/ and CLI Cron Imports
Route /api/* Webservice calls to a capped secondary PHP-FPM pool (e.g., 6-10 children) or execute ERP CSV sync via CLI so front-office checkout pools always retain reserved capacity.
Measured Thresholds & Configuration
| Workload Type | Worker RSS | memory_limit | Pool Isolation |
|---|---|---|---|
| Front-Office Checkout | 230 MB | 512M | Primary pool (75% RAM) |
| ERP / Webservice Sync | 290 MB | 768M | Secondary pool (4-8 children) |
| Nightly Price Indexing | 340 MB CLI | 1024M CLI | Off-peak system cron |