I have what seems to be a huge memory leak in my node.js app, but when I use node-webkit-agent to examine the heap, it seems quite small. I suspect that there may be a whole ton of async operations queued up on the node.js event queue, but I'm not sure how to examine that. Is there any way to do so?
Asked
Active
Viewed 2,673 times
1 Answers
7
You can check open handles and requests by inspecting the return values of the undocumented functions process._getActiveHandles()
and process._getActiveRequests()
respectively. That won't get you everything that may be waiting in the event loop, but it should help.

mscdex
- 104,356
- 15
- 192
- 153