OpenVZ Forum


Home » General » Discussions » Discovering TOP process on virtual machine (Command to output process name, path which uses most cpu, memory, traffic)
Discovering TOP process on virtual machine [message #51176] Sat, 01 March 2014 10:47
postcd is currently offline  postcd
Messages: 73
Registered: April 2013
Member
Hello, on my openvz server, i can output load averages of containers:

Code:

# vzlist -o laverage,ctid -H
0.00/0.00/0.00 130
0.10/0.10/0.10 150
2.26/2.28/2.28 190


please which command/script to use so it outputs top 1 or 2 processes on the linux system with 2.26 laverage?

i mean, i want to see something like:
processname processpath cpuusage iodiskusageinmbytes bandwidth runtime


to do an command on one container i can use this:
vzctl exec 190 commandhere


im looking for classic linux command or script to grab vzlist output and extract the process and its data

Thank you

[Updated on: Sat, 01 March 2014 10:52]

Report message to a moderator

Previous Topic: Port not connecting
Next Topic: Clamscan - can't allocate memory
Goto Forum:
  


Current Time: Fri Dec 09 15:26:05 GMT 2022

Total time taken to generate the page: 0.00945 seconds