DEV Community

Discussion on: My Favorite Linux Tools

Collapse
 
anpos231 profile image
anpos231 • Edited

This is so useful when trying to find runaway node processes.
Why not use killall -9 node?

I'd like to add 'screen' to the list. Useful when you want to leave your terminal session running after leaving VPS.

Collapse
 
moopet profile image
Ben Sinclair • Edited

You usually don't want to kill all your node processes, just the one that's running away...
and using SIGKILL like a hammer is a slippery slope.

Collapse
 
antjanus profile image
Antonin J. (they/them)

yep! VSCode and other processes spin up their own node processes. I'd want to kill a specific one.

What doesn't help is that if you're using webpack or nodemon, or a combination of tools, they'll just spin up another node process as soon as you kill it.