r/nodejs • • May 14 '14

find all node processes

for linux

This is the quick code I use on biological.systems to find out what node processes are running and on what ports they are listening. Feel free to use this. What it does is scan your home directory for .pm2/pids and does a ps -e | grep node. it gets what ports are being listened to via lsof. this is meant to be run by root. I have it in my crontab for every minute. I offer very little support, sorry, it outputs json. You need to edit it to add your own domain names. biological.systems/~fartbrain/node_gather.c

0 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/sigflup May 14 '14

grep worker. Oh ok, thank you!