How to view in what openvz vps a process is running

1. Login on openvz node and use ps command to find the PID

ssh root@openvz-node
ps auxwwwf

2. After finding PID execute following commands

for i in `vzlist -a | grep running | awk '{print $1}'`; do echo $i; ps $* -p $(grep -l "^envID:[[:space:]]*$i\$" /proc/[0-9]*/status | sed -e 's=/proc/\([0-9]*\)/.*=\1=') | grep $PID; done

2 thoughts on “How to view in what openvz vps a process is running”

  1. The the very firs tging that you simply must consider can be
    your budget. There’s hardly anything else
    on earth which could generate a girl happier over a shiny diamond ring.

    But unfortunately collection provided by online
    jewelry stores don’t impress you, try searching tthe ring on other
    stores that supply special discounted ooffer around the
    buying diamond rings.

Leave a Reply

Your email address will not be published. Required fields are marked *