- vSphere High Performance Cookbook
- Prasenjit Sarkar
- 347字
- 2021-08-13 16:23:01
What metrics not to use
A lot of the time, we assume that some very popular metric would be better to monitor memory performance. However, many a times, it leads to something else. This means that these are not an indication of a memory performance issue. If this metric is combined with something else then it may indicate performance degradation.
In this aspect you should not use two of the most popular metrics just to understand whether memory is under pressure or not:
Mem.consumed
(Consumed Memory)Mem.vmmemctl
(Ballooned Memory)
Let me show you what they essentially indicate.
Mem.consumed
is the amount of memory consumed by one or all virtual machines. This is calculated as memory granted minus memory saved by sharing. Now the question is why we should not use this. The reason is that memory allocation will vary dynamically based on the VM's entitlement. It is important that a VM should get whatever it actually demands.
Similarly, Mem.vmmemctl
is the amount of ballooned memory. This does not indicate a performance problem as well. However, when it gets combined with Host Swapping then it indicates a performance problem.
Getting ready
To step through this recipe, you will need a running ESXi Server, a couple of running Memory Hungry Virtual Machines, and a working installation of vSphere Client. No other prerequisites are required.
How to do it...
To spot the Consumed Memory metric value within the vSphere infrastructure, this is what you should do:
- Open up vSphere Client.
- Log in to the vCenter Server.
- In the Home screen, select VMs and Templates.
- Choose the VM where you want to monitor the Consumed Memory.
- Go to the Performance tab on the right-hand side.
- Select Memory from the drop-down list.
- Click on the Advanced tab, and select Chart Options.
- Select the Consumed metric, and then click on OK to continue.
Now you should see something similar to the following screenshot:

In this example you can see that the Consumed value of the Memhog-VM3 VM is 1409900 Kilobyte.
To understand the Mem.vmmemctl
metric you should follow the Monitoring host ballooning recipe.
- C++程序設(shè)計(jì)教程
- iOS面試一戰(zhàn)到底
- Redis Applied Design Patterns
- Java EE框架整合開發(fā)入門到實(shí)戰(zhàn):Spring+Spring MVC+MyBatis(微課版)
- 劍指JVM:虛擬機(jī)實(shí)踐與性能調(diào)優(yōu)
- 深入淺出Spring Boot 2.x
- Arduino開發(fā)實(shí)戰(zhàn)指南:LabVIEW卷
- Practical Data Science Cookbook(Second Edition)
- R語言游戲數(shù)據(jù)分析與挖掘
- Android 應(yīng)用案例開發(fā)大全(第3版)
- WordPress 4.0 Site Blueprints(Second Edition)
- Spring Boot+MVC實(shí)戰(zhàn)指南
- Instant Debian:Build a Web Server
- UX Design for Mobile
- 進(jìn)入IT企業(yè)必讀的324個(gè)Java面試題