Which tool would you use to find a memory leak in a Node.js process?
- A Comparing heap snapshots taken before and after load
- B Reading the access log
- C Increasing the heap size limit
- D Restarting the process periodically
Answer
Comparing heap snapshots taken before and after load
Comparing snapshots shows which objects were allocated and never freed. Common causes are unbounded caches and listeners that are never removed.





