Tarsier LabsTarsier Labs
🐵
Home
Categories
Tags
Bookmarks
About
Back to tags

Node.js

0 articles

Production Environment Node.js OOM Investigation and Fix: A Complete Record from 300MB Limit to SSE Leak

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.

00
Interface Management
4-Core Server Backend Optimization Report: Why Cluster Mode Is Not the Answer

4-Core Server Backend Optimization Report: Why Cluster Mode Is Not the Answer

This article documents the multi-core optimization evaluation process for a NestJS API backend deployed on a 4-core VPS. It analyzes the feasibility of Cluster mode, UV_THREADPOOL_SIZE, database query optimization, Redis caching, and Nginx cache tuning one by one, ultimately concluding that "the bottleneck is DB I/O, not CPU."

00
Performance Optimization
admin-next Browser Crypto Shim: Simulating node:crypto with the Web Crypto API

admin-next Browser Crypto Shim: Simulating node:crypto with the Web Crypto API

A deep dive into the admin-next browser crypto shim — a lightweight polyfill that replaces node:crypto with the Web Crypto API for browser environments. Covers the createHash function, synchronous fallback, and the minimal-shim strategy for mixed Node.js/browser codebases.

00
Management Backend