This document is a living, up-to-date version of the performance analysis methods whitepaper. Host memory utilization represents the entirety of memory usage due to the VM and all tasks required by ESX Server to manage and provide control of the VMs. Using ESX Server's monitoring capabilities there is no visibility into improper usage of configuration of memory within the guest. Continue to use traditional monitoring tools in the guest to identify memory-hungry applications or shortages that lead to in-guest swapping.
As before, bring up esxtop to inspect system specifics. Hitting the ‘m' key will display the memory counters. Once running, the following can be observed from the esxtop report:
Memory analysis on an ESX Server means not just investigation of server-side statistics but also a solid understanding of the application that is running in the VM. When memory is short on the host, ballooning and swapping may be visible in esxtop, with swapping having a great impact on performance. When memory is short within the VM the guest will swap.
The prescriptive advice for memory shortages is fairly simple: use less memory or buy more. The following recommendations are variations on this theme:
One cannot fully optimize an ESX Server's memory without understanding the performance implications of page sharing. VMware's page sharing algorithm was presented at EMC World 2008 as resulting in a 2% increase in CPU load. But the benefits of page sharing have been demonstrated to provide overcommitment of memory safely to 2X and beyond. The value of page sharing can be seen int the following counters:
Note that missing counters can be calculated using the other two. Shared memory minus shared common memory equals shared savings.
The top-level Performance Monitoring and Analysis paper. The esxtop Performance Counters index. The Understanding VirtualCenter Performance Statistics page.