How can I inspect the node.js event queue?

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?


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.

链接地址: http://www.djcxy.com/p/80834.html

上一篇: 如何将命令的控制台输出重定向到文件?

下一篇: 我如何检查node.js事件队列?