It sounds like you are looking for process._getActiveHandles(). You could
set up a signal handler for SIGUSR2 or an unref()'d timer to log the output
of that function to the console.

It's not always the easiest to decipher, but it should give you some ideas
of where to look.

~Ryan

On Fri Jan 23 2015 at 1:00:31 PM // ravi <[email protected]> wrote:

> On Jan 23, 2015, at 2:22 PM, [email protected] 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
>
>
> --
> Job board: http://jobs.nodejs.org/
> New group rules: https://gist.github.com/othiym23/9886289#file-
> moderation-policy-md
> Old group rules: https://github.com/joyent/node/wiki/Mailing-List-
> Posting-Guidelines
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/nodejs/35164503-DDEE-4E0D-8191-CD2B278D93F5%40g8o.net.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAGjmZGyuAsSf4eoq%2Bq3Z7Rqk%2BCumAz%2B%3DwsDmq0M2cZgsxR2kEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to