Node.js · Senior · Question 4 of 75

How do you find what is leaking in a Node.js process?

Explanation

The comparison view shows objects allocated between snapshots, and retainer paths show what keeps them alive. --heapsnapshot-near-heap-limit can take a snapshot right before a crash.

Further reading

Problem with a question

Node.js · Senior · question 4

Test yourself

Take the Node.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz