Lab 19: Monitoring Virtual Machine Performance

In this lab, I am going to discuss how to system monitoring tools reflect CPU workload

The tasks list for the lab 19:

  • Create CPU Activity
  • Use vSphere web Client to Monitor CPU Utilisation
  • Undo Change Made to the Virtual Machines


  • Log in the VMware vSphere web client portal: https://vCenter Server Appliance Name.domainname:9443/vshpere-client/# or VMware vSphere Client via root user and password.

Steps for the task: Create CPU Activity

In this task, I am going to run a CPU busy scripts in each of the VMs for creating a heavy CPU load.

Step 1: Go to the Home -> vCenter ->VMs and Templates. Power On each of your VMs and Open it through console or VMRC. Log in as an Administrator user.1.jpg

Step 2: Run the CPU busy script “cpubusy.vbs”. Right-click on it and select “Open with Command Prompt”2.jpg

Steps for the task: Use vSphere Web Client to Monitor CPU Utilisation

In this task, I am going to show how to monitor CPU, memory, disk, Network, and Storage resources and how to use Resources metrics to follow up the performance by using performance charts

Step 1: Click your first VM in the inventory Note: Be sure that cpubusy.vbs script is running on that virtual machine.

Click the Monitor -> Performance tab. You will see “Overview view is displayed by default”

When I clicked on Performace tab, I got “Overview” view by default. 3.jpg4.jpg

Step 2: Click”Advanced” tab. You will see that Advanced tab is showing by default CPU usage in real time statistics.5.jpg


Step 3: On the screen, You can see “Performace chart Legend” tab. Click on ” The name of VM”. The Chart Options link will be activated.  Note: You need to unpin the right column to make the like visible if you can not see it yet.

Click on Chart Options link:8.jpg

Step 4: The customise Performance Chart dialogue Wizard has appeared.

Select CPU. Select “Rea-time” from the “TimeSpan” drop-down menu. In the target object box: Deselect the check box with your Virtual Machine’s Name.

In the CounterPane: Click “None” to deselected counters. Only Select “Ready and Used”

Only Select “Ready and Used” counters. Then “OK”2.jpg

The Chart is displayed with graphical manner. You can now measure the real Time Performance of your VM CPU.3.jpg

Step 5: Repeat the Step 4 for the rest of the VMs. Compare the CPU busy “Ready” and “used ” chart performance with each other VMs.5.jpg6.jpg

Note: Performace chart update automatically every 20 seconds

Press Ctrl+C to stop the “cpubusy.vbs” in each VM after complete performance chart task.

Steps for the task: Undo Change Made to the Virtual Machines

Now I will show how to undo the change that happened to the VMs after performing the previous tasks. And I will delete the Scheduling affinity value from CPU setting that we put in previous labs.

Step 1: Close the CPU Performance Chart Options Web Browser window for each VMs

Close the VM Console for each VMs

Step 2: Right Click on VM, Select “Edit Setting”

In the Virtual Hardware, Click “CPU” and expand it. Delete the “1” from the text box in the Scheduling Affinity. Then Ok


Step 3: Repeat the Step 2 for the rest of the VMs in your environment.

Thank you 🙂 


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s