On Jan 23, 2015, at 2:22 PM,
bill.w...@lmco.com wrote:
>
> Is there any way in node.js 0.10.x to see what is keeping the event loop still alive/running? I have an app which used to shut down cleanly but now is hanging, so there must be a timer, socket, etc. still active, but it is not apparent where.
Are you on *nix? If so, and if it is a socket, then you can use ‘netstat -nap’ specifying the process id of your node process, to get the list of open/connected sockets it is holding. That might give you a clue (e.g: if you have a socket connected to port 3306 on a remote server, then it’s possibly a MySQL connection). You can also use ‘lsof’ in a similar way.
—ravi