-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Feature Request: Tool to see why process is still running? #1025
Comments
That's a neat idea - sending some signal to the node process will make it list its libev watchers. The problem is there are so many things I'd like to do to a Node process besides listing the watchers - and there are so few signals... Here is the call to walk the watchers: https://github.com/joyent/node/blob/4cc0a0878fb0b31547c9a8d27e31f1daceb49524/deps/libev/ev.h#L598 |
@ry: Is there a list of things to do with the signals accompanied by the list of signals? So far, the only things I can think of wanting a signal for are heap dump and what I have just mentioned, and of course the default kill and kill -9. What other signals are there that risk filling the (11?) blanks? Actually, if this can be accomplished with a listener in my code then I would be perfectly happy. Just let me know what JavaScript to put in the signal listener if that is possible. Is this possible? |
It would be nice if https://github.com/tlrobinson/long-stack-traces/ could be combined with some code that walked all of the current watchers to produce a list of sleeping (long) stack traces. |
I implemented a process.watchers() method that adds exactly this: #1532 |
@bnoordhuis mind referencing the similar feature in the works you mentioned in #1532? If there's already an issue open for that, then seems this one can be closed. |
It's the |
I need a solution for the "why is my process still running" problem, too, and while I already use |
That will eventually come but intuitive, fool-proof debugging is surprisingly complex and time consuming to implement. Ditto for profiling. |
...and you are a pro on the matter. Most of us node.js users aren't (yet). I've created a gist with a minimalistic test case demonstrating my current problem: Nevertheless thank you for your attention on this. |
@bnoordhuis Ben, I just want you to know that I found this thread a year after you made your comment about the |
This module is super helpful for figuring out what's keeping node alive: https://github.com/mafintosh/why-is-node-running |
Explained here http://stackoverflow.com/questions/5916066/node-js-tool-to-see-why-process-is-still-running
The text was updated successfully, but these errors were encountered: