#VCP
Monitoring tool that is running locally on an ESXi host. Can be used by logging into the ESXi host with ssh and executing `esxtop`
esxtop provides near real time(updated every 5 seconds by default) view on an ESXi host and it's resource.
## Views
----
### Shortcuts
`V` = Virtual machine view
`m` = memory view
`d` = disk view
`f` = choose the information shown in the current view
`s` = seconds to delay, how often esxtop should be refreshed
`h` = help
`v` = VM disk view
`n` = network view
### Main view/CPU view
`GID` = Collection of processes
`NWLD` = Number of worlds for this group
`%RDY` = **CPU Ready time** in % (the lower the better, above 5% you should worry)
`%CSTP` = **Costop,** will go up with "**CPU skew**", see [[vSphere - ESXi.md#CPU virtualization#CPU virtualization#Co Stop]]
`%WAIT` = includes %IDLE, describes the amount the VM is waiting/idle, higher when VM is not doing much
`%IDLE` = the percentage of time the vCPU world is in an idle loop
### Memory view
`MEMSZ` = Memory size configured for the VM
`GRANT` = Memory being granted to the VM
`SWCUR` = Current **swapping** activity (should always be 0)
`SWTGT` = **Swapping** target
`MCTL` = **Balooning** enablement (either Y=yes or N=no) should always be enabled.
`MCTLSZ` = current **Balooning** acticity
`MCTLTGT` = **Balooning** future target, if higher than `MCTLSZ` then **Balooning** is increasing.
`MCTLMAX` = Maximum of **balooning** that can happen on this VM
### disk view
`DAVG` = average device latency of storage system
`KAVG` = latency introduced by kernel of ESXi, should always be very low (under 1ms)
`GAVG` = Guest average latency, total latency experienced by the VM
### VM disk view
`READS` = reads of VM
`WRITES` = writes of VM
`MBWRTN` = MB written
`LAT/rd` = latency of read
`LAT/wr` = latency of write
### network view
`TEAM-PNIC` = actual physical NIC being used by the virtual port of VM/VMK.
`DRPTX` = %Packets dropped (TX)
`DRPRX` = %Packets dropped (RX)
## resxtop
is a command line tool that can be installed on linux to gain a detailed look into ESXi resource usages in real time.
It can be run on either a linux OS or in ESXi itself.
the tool can be run with the following default paramters:
`resxtop --server <hostname> --username <user>`
further parameters:
- `vihost` if connected through vCenter, this can be used to connect via VC
- `portnumber` specify a different port number, default is 443
### Requirements
- Linux supported only
- install `resxtop` tool
## 🔗Resources
### ESXtop Cheat Sheet
- https://www.running-system.com/wp-content/uploads/2015/04/ESXTOP_vSphere6.pdf
### ESXtop detailed explanation
- https://www.virten.net/vmware/esxtop/
### resxtop
- https://docs.vmware.com/de/VMware-vSphere/8.0/vsphere-monitoring-performance/GUID-194D583E-EFDC-44DF-AF3C-625974815766.html