Production Environment Node.js OOM Investigation and Fix: A Complete Record from 300MB Limit to SSE Leak
This article fully documents the investigation process of a NestJS backend crashing in production due to a JavaScript Heap OOM. It analyzes three compounding factors (tight heap limit, SSE connection leak, Prisma memory usage) and provides a step-by-step fix plan.