How to check node.js event queue?

I have what seems like a huge memory leak in my node.js application, but when I use node -webkit-agent to examine the heap, it seems pretty small. I suspect there could be a whole ton of asynchronous operations in the node.js event queue, but I'm not sure how to check this. Is there any way to do this?

+7
source share
1 answer

You can check for open descriptors and queries by checking the return values ​​of the undocumented functions process._getActiveHandles() and process._getActiveRequests() respectively. This will not give you everything that can wait in an event loop, but it should help.

+4
source share

All Articles