OpenVZ Forum


Home » General » Support » Find out which VE running a process?
icon5.gif  Find out which VE running a process? [message #40505] Thu, 26 August 2010 12:18 Go to next message
tom123 is currently offline  tom123
Messages: 2
Registered: August 2010
Junior Member
Hello,

some processes on my node use a lot of CPU. How do I find out which VE runs which process?
In top or with ps aux I only see this:

28910 33 15 0 35948 8608 3288 S 89.5 0.1 0:21.07 /usr/bin/php5-cgi

So the process root is /usr/bin/php5-cgi, but I still don't know which VE executes it. The load of al VEs is normal, so I also can't find it with veid,laverage.
Re: Find out which VE running a process? [message #40514 is a reply to message #40505] Fri, 27 August 2010 13:27 Go to previous messageGo to next message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
On HN node you can use vzpid tool
for example if 8480 is a pid
#vzpid 8480
Pid VEID Name
8480 210 httpd
Re: Find out which VE running a process? [message #40523 is a reply to message #40505] Sat, 28 August 2010 20:15 Go to previous messageGo to next message
tom123 is currently offline  tom123
Messages: 2
Registered: August 2010
Junior Member
Thanks!
Re: Find out which VE running a process? [message #40631 is a reply to message #40523] Tue, 07 September 2010 15:25 Go to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

or use htop with ctid feature:

htop -> setup (f2) -> colums -> choose ctid on right side -> quit (f10)

you can sort via ctid as well

Bye,
Thorsten
Previous Topic: Unable to open /dev/vzctl
Next Topic: Container_enter_failed
Goto Forum:
  


Current Time: Mon Jul 15 22:11:27 GMT 2024

Total time taken to generate the page: 0.02689 seconds