How much RAM does Stirling PDF need?
Self-hosted PDF toolbox with a web interface and REST API for merging, splitting, compressing, converting and OCR. Official requirements, sourced, plus our own measurements.
Last updated: 2026-11-24
Pinned version: Stirling PDF 3.5.0 (docker.stirlingpdf.com/stirlingtools/stirling-pdf:3.5.0@sha256:f5a38801f2dd551c26d0089ee3ea48d86a565e3adb414cb31e974bc9562cb48a)
Our measurement
730 MB idle RAM · 3482 MB disk (images 3482 + data 0) · stirling-pdf 730 MiB (no separate database)
Official Docker Compose example with the image tag pinned to 3.5.0 instead of latest. The port was published on localhost only and the six folders started empty. Nothing was configured and the setup wizard was not completed. The container writable layer added about 104 MB on top of the image, and the mounted folders held under 1 MB.
Method: Official compose example with the image tag replaced by the exact version (never latest). Measured about 10 minutes after start as docker stats MEM USAGE (MiB), 3 samples 20 s apart (median). Disk = pulled image size (docker reports 3.48 GB); the mounted folders were under 1 MB.
Host: 8 vCPU Intel Xeon VM, 16 GB RAM, Debian 13 (kernel 6.12), Docker 29.10.0 + Compose 5.8.0
Version: Stirling PDF 3.5.0 (docker.stirlingpdf.com/stirlingtools/stirling-pdf:3.5.0@sha256:f5a38801f2dd551c26d0089ee3ea48d86a565e3adb414cb31e974bc9562cb48a) · Compose: source · Date: 2026-11-24
With sample data
730 MB idle RAM · 3482 MB disk · stirling-pdf 2,236 MiB at peak; it settled at 833 MiB about 4 minutes after the load
Peak RAM during processing: 2236 MB
Sample: 130 PDF jobs through the documented REST API, 4 at a time: 40 compressions (level 5) and 40 PDF to PNG conversions at 150 dpi of a 20-page PDF, 40 merges of two 20-page PDFs, and 10 OCR runs on a 3-page scanned PDF.
All 130 requests returned HTTP 200 in about 26 seconds. Peak RAM was 2,236 MiB, then it settled at 833 MiB about 4 minutes later, still above the idle figure. Stirling PDF does not publish a load test, so this is our own test with small generated text PDFs. For the load test only, login was switched off with the documented SECURITY_ENABLELOGIN=false setting because the API needs a sign-in by default, so the container was restarted first and idle was measured beforehand with the defaults. Larger or image-heavy PDFs will use more.
Method: Same image and host as the idle measurement, restarted with SECURITY_ENABLELOGIN=false. Peak RAM = docker stats of the container polled back to back (about every 2 s, 19 samples) from the first request until 10 s after the last one. Settled RAM = 3 samples 20 s apart, about 4 minutes after the load (median).
Version: Stirling PDF 3.5.0 · Date: 2026-11-24
What the official docs say
- The official Docker install page suggests 4 GB of memory for the default latest image, 2 GB for the ultra-lite image (core PDF tools only, no OCR, Office, HTML or ebook conversions) and 6 GB for the fat image (adds an AI engine that stays off until you turn it on).
- The official Docker Compose example runs a single container, publishes port 8080, mounts six folders (configs, logs, customFiles, pipeline, storage and tessdata) and sets a 4 GB memory limit.
- The default image includes LibreOffice, Tesseract, OCRmyPDF, WeasyPrint, Calibre, Ghostscript, QPDF and ImageMagick, which is why the image is large.
- The docs say to open port 8080 to start a setup wizard on first run. The REST API is documented with a built-in Swagger page.
Fits a 4GB server?
conditionalMeasured 730 MiB idle RAM for the official Docker container, and a 2,236 MiB peak while it ran 130 PDF jobs (merge, compress, PDF to image and OCR). Using the peak, plus 512 MB for the OS and 30% headroom, that is about 3.5 GB, so it fits 4 GB with little room left for other apps. The docs themselves suggest 4 GB for this image, and larger files, more pages or more simultaneous jobs will use more. The image is also about 3.5 GB on disk.
Sources
- Stirling PDF docs: Install with Docker checked 2026-11-24
- Stirling PDF docs: API checked 2026-11-24
- Stirling PDF docs: Pipeline API checked 2026-11-24
- Stirling PDF v3.5.0 release checked 2026-11-24