Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Table of Content
1.
1.2.
1.3.
1.4.
1.5.
2.
2.1.1.
2.1.2.
2.2.
2/14
1.
All tools can be found on the \\Xylos-Fileserver\Applications share. You should be local administrator
to your deskop.
Logon credentials:
-
1.1.
Local workstation:
Domain low-level:
Domain high-level:
vMA:
Administrator
Student
AdmStudent
vi-admin
Educadmin
Tr@ining
I@mTheBoss
Vmw@re123
Please assign a fixed IP address to your PC in the range 172.16.3.x. Subnet mask: 255.255.248.0.
Gateway: 172.16.0.1, DNS: 172.16.5.20. This should connect you to the Lab domain (xylos.training)
1.2.
1.3.
1.4.
Installing vCLI
The vSphere vCLI package is located in the folder VMware vSphere CLI 5.0 U1. Run
VMware-vSphere-CLI-5.0.0-615831.exe as an administrator.
Install to the default directory.
3/14
1.5.
Installing RVTOOLS
The RVTools package is located in the folder RVTools. Run RVTools.msi as an
administrator.
Install using the default settings and location.
4/14
2.
2.1.
Start the vSphere Client and connect to the vCenter Server (xylos-vCenter.xylos.training) with
your admin credentials.
Go to the Home > Inventory > Hosts and Clusters view and select one of the ESXi hosts.
Select the Summary tab. On the right side there is a Resources box, showing the actual
hosts resources in use.
Select the Performance tab. By default you will be in the Overview section. You can see
here a global overview of CPU, Memory, Disk and network resources. By default, the Time
Range is the last 24 hours. You can switch to Realtime to see the actual performance charts.
5/14
Switch to the Advanced view and then select CPU to see the actual realtime graph from the
last hour.
Our Lab server actually has 12 cores, so the graph might be a bit overwhelming when you
first open it. With the chart options, you can customize what statistics you want to see.
6/14
As you can see, the charts for hosts and virtual machines are quite similar. This makes it easy
to troubleshoot performance bottlenecks.
To customize the statistics interval, the amount of time that statistics are being saved and the
detail level of the statistics, go to the Administration menu and select vCenter Server
Settings. In the dialog, select the Statistics option.
7/14
2.2.
You can select how long and in what detail level the statistics will be saved. Also, the
database size to which the vCenter database will grow will be estimated. Be careful when
changing the statistics level as your database will grow exponentially!
You can also use esxtop from the command-line to monitor an ESXi server. This tool gives you indepth knowledge of what is going on inside your host.
Open PuTTY and connect to an ESXi host (make sure SSH is enabled and lockdown mode is
disabled).
Start esxtop in interactive mode by typing esxtop in the console:
By default, it comes up with the CPU monitoring screen. Switch to 160 characters width and
40 lines high to show all counters
One important counter is the %RDY. This means the Virtual Machine is waiting for something
(and the CPU is ready to process further), so this is either on disk or on network. Many times
it is disk I/O that it is waiting for. As soon as it is above 1% you should really take notice, as
this means you have some kind of bottleneck.
8/14
%IDLE Subtract this from %WAIT to see time waiting for an event. WAIT-IDLE can be used to
estimate guest I/O wait time.
%MLMTD (max limited Time VMkernel didnt run because it would violate limit settings on the
resource pool, VM or world limits setting.
%SWPWT Wait time for swap memory.
CPU ALLOC CPU allocation. Set of CPU statistics made up of the following. (For a world the % are
the % of one physical CPU core)
AMIN Attribute reservation.
AMAX Attribute limit.
ASHRS Attribute shares.
9/14
On the top right hand site, the memory overcommitment counter is displayed. A value of 0.20
is a 20% overcommitment of memory.
In the second line, we see the PMEM stats that describe physical memory in the host. This
host has 4,096 MB (or 4 GB), of which 861 MB is allocated to the vmk (this is the vmKernel);
1,095 MB (or 1 GB) is used by "other," which leaves 2,139 MB of free memory.
The memory used by "other" is officially described as: "everything other than ESXi VMkernel."
It is not necessarily all memory consumed by the VM. Each VM, for example, also has memory
overhead. The amount of overhead memory depends on the type of guest OS, the number of
virtual CPUs, configured amount of guest memory and on whether the guest is 32-bit or 64bit. For example, a dual-CPU virtual machine with 2,048 MB memory will have 126 MB
overhead as 32-bit system and 163 MB overhead as a 64-bit system.
The next line about VMKMEM is of less importance, though it does tell you how the VMkernel
performs. But unless you're troubleshooting an unusual problem, you won't work with these
values.
The PSHARE/MB tells us how much memory is saved by transparent page sharing (TPS),
which in some environments can be quite a lot. In our example, 127 MB is shared between
the VMs, of which 23 MB is common, which leaves us with savings of 104 MB of memory.
Important: SWAP, ZIP and MEMCTL numbers should be 0. These values are:
10/14
The SWAP value displays the ESX server swap usages statistics, where "curr" is the
current swap usage, "rclmtgt" is how much ESX expects to swap and "r/s" and "w/s"
show the rate at which the swapping occurrs.
ZIP indicates how much memory is being saved by compressing memory pages. This
is also a technique to save memory inside the virtual machine. Zipped shows how
much memory is compressed and saved shows how much physical memory is saved
by doing so.
MEMCTL shows the total amount (cur) of physical memory reclaimed using the
vmmemctl module or the balloondriver, the total amount ESX attempts to reclaim
(target) and the maximum amount ESX can reclaim (max).
As soon as you see the SWAP curr, ZIP zipped or MEMCTRL curr rise above zero, you should
really start investigating what is wrong. As a rule of thumb, you should never load your ESX
memory to more than 80% or 85%. This way you always have spare memory in case VMs
start to use more physcial memory. Also, loading your ESX hosts in a cluster at more than
80% to 85% can get you into trouble with your VMware High Availability failover level.
11/14
The network stats are arranged per port of a virtual switch. PORT-ID identifies the port and
DNAME shows the virtual switch name. USED-BY shows the physical NIC name. If the port is
connected by a virtual NIC, i.e., UPLINK is N, USED-BY shows the port client name. TEAMPNIC shows which physical NIC the port or VM is on.
To access the storage monitoring, press the u key. To see the physical disk device, press d
to see the adapter counters and press v to see the virtual disks of the VMs.
Queue Statistics
AQLEN The storage adapter queue depth.
LQLEN The LUN queue depth.
WQLEN The World queue depth.
ACTV The number of commands in the ESX Server VMKernel that are currently active. QUED The
number of commands queued.
LOAD The ratio of the sum of VMKernel active commands and VMKernel queued commands to the
queue depth.
%USD The percentage of queue depth used by ESX Server VMKernel active commands.
12/14
I/O latencies
I/O latencies are measured per SCSI command so it is not affected by the refresh interval. Reported
latencies are average values for all the SCSI commands issued within the refresh interval window.
Reported average latencies can be different on different screens, (adapter, LUN, VM) since each
screen accounts for different group of I/Os.
Latency statistics
This group of counters report latency values. These are under the labels GAVG, KAVG and DAVG.
GAVG is the sum of DAVG and KAVG.
DAVG+KAVG=GAVG
GAVG round-trip latency that the guest sees for all IO requests sent to the virtual storage device.
(Should be under 25)
KAVG latencies due to the ESX Kernels command. Should be small in comparison to DAVG DAVG
latency seen at the device driver level. includes the roundtrip time between the HBA and the storage.
(Should be 2 or less)
QAVG average queue latency. QAVG is part of KAVG (Should be zero)
13/14
3.
14/14