CodeZettaInterview Hub

Node.js · Memory · Senior · Scenario

Scenario: heap grows only in production under traffic.

Short Interview Answer

Likely request-correlated retention: closures over req, orphaned timers, or growing module-level state.

Detailed Explanation

Add continuous profiling. Check ALS misuse. Verify framework middleware not buffering bodies.

Did you know this answer?