Product:
Search Type:

[How To] How to determine which VE is running a specific process?

Article ID: 1000 
Last Review: Jun,08 2007
APPLIES TO:
  • Virtuozzo for Windows 3.5.1
  • Virtuozzo for Windows 3.5.1 SP1
  • Virtuozzo Containers for Windows 4.0

RESOLUTION

There may be times when you observe a certain process on a Virtuozzo server using a major part, or a high percentage of the CPU resources.

The following steps outline an easy way to determine which VE is running that particular process.

1. Open the Windows Task Manger on the Host, browse to View > Select Columns and mark the check box for "PID (Process Identifier)".
 
2. Switch to the Processes tab of the Task Manager, mark the check box "Show processes from all users" on the bottom and note the PID for the process which occupies CPU (you can sort processes by CPU usage by clicking the CPU column header).

3. Open the Windows Command Prompt
 
4. Enter this command, PID is the number you noted for the process in step 2:
 
vzquery p2v PID 


For example, this shows a process running in the Service VE, which always has a VE ID of 1:

vzquery p2v 3280
Process ID: 3280
Session ID: 1 (ROOT)
VE ID: 1

 
Keywords: process2vps process2vpsid pid2vps pid2vpsid pid sessionid

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields