Fix Guides // NodeFlow Diagnostics
Batching 20,000-Page PDF Ingestion Without V8 Heap OOM
Never upload a 500 MB PDF bundle in a single Flowise Document Store click. Micro-batching 50-100 pages per API upsert keeps V8 heap flat under 2 GB.
Measured Stack Telemetry & Memory Profile
Memory spikes scale linearly with unsplit document batch size because Flowise holds extracted text, split chunks, and embedding JSON responses in memory until upsert completes. Streaming 50-page batches via the Document Store API or Make.com iterator keeps peak RSS predictable.
| Subsystem / Signal | Measured Target | Operational Impact |
|---|---|---|
| Monolithic 10k-Page Upload | 9.5 - 14 GB Peak Heap | High risk of JS Heap OOM & 504 timeout |
| 50-Page Micro-Batch Pipeline | 1.8 - 2.6 GB Peak Heap | Zero OOM; safe even on KVM 2/KVM 4 |
| Optimal Splitter Settings | chunkSize=1000 / overlap=150 | Balanced retrieval precision & vector count |
Step-by-Step Triage & Config Remediation
- Split oversized PDFs pre-upload: Slice multi-hundred-page PDFs into 50-page segments before hitting Flowise Document Store upsert.
- Tune chunkSize and overlap: Use chunkSize=1000 and chunkOverlap=150 to avoid exploding total vector count unnecessarily.
- Automate micro-batches with Make.com: Watch Google Drive/S3 in Make.com (10k free Pro ops 1st mo) and push sequential chunks with 2s spacing.
POST /api/v1/document-store/upsert/<storeId> # Batch target: <= 50 pages / <= 15 MB per HTTP call # Splitter: chunkSize=1000, chunkOverlap=150
Diagnostic FAQ
Does smaller chunkSize increase or decrease RAM?
Smaller chunkSize (e.g., 300) doubles vector count and embedding array overhead; 800-1200 chars is the sweet spot.
How many Make.com operations does a 1,000-page batch use?
Roughly 20-40 operations when chunked into 50-page batches—fitting comfortably inside the 10,000 free 1st-month Pro ops.