You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement a watch-dog mechanism which can kill runaway extension host processes #26445
In certain circumstances, e.g. extension that does while (true) loop, the extension host process will not terminate unless killed via task manager.
Implement a watch-dog mechanism that can kill runaway extension host processes.
NB: This was not an issue on Windows until we made the process be forked with the detached option to allow 5s for the extensions to gracefully shut down.
Can this also detect how much % CPU the process is using, give a notification which process is long-running, and give the user the option of restarting/killing it? That way you would also expose potentially problematic extensions?
Reacted by Mark Eissler, Abhinav Gauniyal, Nic Cope, Alexander and ghobadkhan
Activity
alexdima commentedon May 20, 2017
An idea would be to:
API: http://docs.libuv.org/en/v1.x/threading.html
dbaeumer commentedon May 22, 2017
Cool idea. Will avoid having yet another process running.
sjelfull commentedon May 22, 2017
Can this also detect how much % CPU the process is using, give a notification which process is long-running, and give the user the option of restarting/killing it? That way you would also expose potentially problematic extensions?
alexdima commentedon May 22, 2017
Well, we'd want the JS stack trace, not the C++ one (otherwise we'd just see v8 being in the stack).
That appears to be difficult from the discussion in nodejs/node-v0.x-archive#25263
12 remaining items
alexdima commentedon Sep 17, 2018
This has been implemented now on master.
bpasero commentedon Sep 25, 2018
Adding verification needed, but this probably needs some test plan input and testing across OS (cc Matt Bierner (@mjbvz)).
bpasero commentedon Sep 25, 2018
I created #59303